aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2007-09-19 15:03:07 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2007-09-19 15:03:07 +0000
commit980d88824772f4e5732e7a8722521896bb57b7d2 (patch)
treeb21e4dce446f7cc1d4263f5bb8e7435e45259ae4 /gcc/final.c
parent40a479d430d89c405e5ee33b713b33b2cc07fc27 (diff)
downloadgcc-980d88824772f4e5732e7a8722521896bb57b7d2.zip
gcc-980d88824772f4e5732e7a8722521896bb57b7d2.tar.gz
gcc-980d88824772f4e5732e7a8722521896bb57b7d2.tar.bz2
tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.
* doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument. * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument default definition. (asm_insn_count): Pass template as second argument to it. * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise. (sh_insn_length_adjustment): Pass template as second argument to it. * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro. From-SVN: r128599
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c
index e5e9b8d..5187efa 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -109,7 +109,7 @@ along with GCC; see the file COPYING3. If not see
/* Is the given character a logical line separator for the assembler? */
#ifndef IS_ASM_LOGICAL_LINE_SEPARATOR
-#define IS_ASM_LOGICAL_LINE_SEPARATOR(C) ((C) == ';')
+#define IS_ASM_LOGICAL_LINE_SEPARATOR(C, STR) ((C) == ';')
#endif
#ifndef JUMP_TABLES_IN_TEXT_SECTION
@@ -1344,7 +1344,8 @@ asm_insn_count (rtx body)
template = decode_asm_operands (body, NULL, NULL, NULL, NULL, NULL);
for (; *template; template++)
- if (IS_ASM_LOGICAL_LINE_SEPARATOR (*template) || *template == '\n')
+ if (IS_ASM_LOGICAL_LINE_SEPARATOR (*template, template)
+ || *template == '\n')
count++;
return count;