diff options
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/final.c b/gcc/final.c index 1f673fb7858..cbdb3f1bfdd 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1385,6 +1385,9 @@ asm_insn_count (rtx body) else template = decode_asm_operands (body, NULL, NULL, NULL, NULL, NULL); + if (!*template) + return 0; + for (; *template; template++) if (IS_ASM_LOGICAL_LINE_SEPARATOR (*template, template) || *template == '\n') |