mirror of git://gcc.gnu.org/git/gcc.git
* final.c (asm_insn_count): Return zero for an empty asm body.
From-SVN: r137346
This commit is contained in:
parent
5f0d975b0d
commit
5bc4fa7cd2
|
@ -1,3 +1,7 @@
|
||||||
|
2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
|
||||||
|
|
||||||
|
* final.c (asm_insn_count): Return zero for an empty asm body.
|
||||||
|
|
||||||
2008-07-02 Richard Guenther <rguenther@suse.de>
|
2008-07-02 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
* bitmap.h (bitmap_set_bit): Return bool.
|
* bitmap.h (bitmap_set_bit): Return bool.
|
||||||
|
|
|
@ -1385,6 +1385,9 @@ asm_insn_count (rtx body)
|
||||||
else
|
else
|
||||||
template = decode_asm_operands (body, NULL, NULL, NULL, NULL, NULL);
|
template = decode_asm_operands (body, NULL, NULL, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
if (!*template)
|
||||||
|
return 0;
|
||||||
|
|
||||||
for (; *template; template++)
|
for (; *template; template++)
|
||||||
if (IS_ASM_LOGICAL_LINE_SEPARATOR (*template, template)
|
if (IS_ASM_LOGICAL_LINE_SEPARATOR (*template, template)
|
||||||
|| *template == '\n')
|
|| *template == '\n')
|
||||||
|
|
Loading…
Reference in New Issue