This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fix ia64 g++.dg/abi/mangle1.C


My most recent change to ASM_OUTPUT_LABELREF resulted in stuff like

	.global foo#
	.type foo#,@function
foo#:

where the "#" at the actual symbol definition is not needed.
We don't actually generate incorrect code with this (at least
with gas -- dunno about the intel assembler), but it causes
us to fail the test in question due to patterns not matching.

Plus it's ugly.


r~


        * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
        ia64_asm_output_label.

Index: config/ia64/sysv4.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/sysv4.h,v
retrieving revision 1.15
diff -c -p -d -u -r1.15 sysv4.h
--- sysv4.h	2001/08/19 09:03:02	1.15
+++ sysv4.h	2001/08/22 02:03:21
@@ -64,7 +64,8 @@ do {						\
   else						\
     fputs (user_label_prefix, STREAM);		\
   fputs (name_, STREAM);			\
-  fputc ('#', STREAM);				\
+  if (!ia64_asm_output_label)			\
+    fputc ('#', STREAM);			\
 } while (0)
 
 /* Intel assembler requires both flags and type if declaring a non-predefined


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]