This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix ia64 g++.dg/abi/mangle1.C
- To: gcc-patches at gcc dot gnu dot org
- Subject: fix ia64 g++.dg/abi/mangle1.C
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 21 Aug 2001 19:09:27 -0700
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