diff options
author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-19 15:03:07 +0000 |
---|---|---|
committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-09-19 15:03:07 +0000 |
commit | 0cb734178f560acc0c6f298874136a6e7f254ac9 (patch) | |
tree | b21e4dce446f7cc1d4263f5bb8e7435e45259ae4 /gcc/final.c | |
parent | 618aa281acc2f5a1b64be875079bebef3ddc4a46 (diff) | |
download | gcc-0cb734178f560acc0c6f298874136a6e7f254ac9.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128599 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c index e5e9b8d0f80..5187efa6256 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; |