summaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1994-02-10 20:58:13 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1994-02-10 20:58:13 +0000
commit4d669f311cd0bff31c8783f05d83cc6e51b14061 (patch)
tree4204ac9cc5f7fe14c0aa1af942220829109468ac /gcc/final.c
parent46f00337cd3d114d2376608f4ee61bfa649672ac (diff)
downloadgcc-4d669f311cd0bff31c8783f05d83cc6e51b14061.tar.gz
* final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide default
definition. (asm_insn_count): Use IS_ASM_LOGICAL_LINE_SEPARATOR rather than assuming the logical line separator is ';'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6524 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r--gcc/final.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c
index d4b34b2915a..6c297020d60 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -106,6 +106,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define ASM_COMMENT_START ";#"
#endif
+/* 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) == ';')
+#endif
+
rtx peephole ();
void output_asm_insn ();
rtx alter_subreg ();
@@ -833,7 +838,7 @@ asm_insn_count (body)
for (template = decode_asm_operands (body, NULL_PTR, NULL_PTR,
NULL_PTR, NULL_PTR);
*template; template++)
- if (*template == ';' || *template == '\n')
+ if (IS_ASM_LOGICAL_LINE_SEPARATOR(*template) || *template == '\n')
count++;
return count;