This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR target/15546, IA64 bootstrap
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Tue, 25 May 2004 13:04:22 -0400
- Subject: [PATCH] Fix PR target/15546, IA64 bootstrap
After fixing the rs6000 case of not marking a function as referenced,
I saw that IA64 was broken via a bug report, I tried and tried to figure
out what was calling assemble_name without marking the the decl as
referenced.
I finally figured out where the problem was since I knew it was related
to
outputing of function decls so I looked again for assemble_name and
found
the macro ASM_OUTPUT_FDESC in the header file was calling assemble_name
but not setting the function decl as referenced. This patch fixes the
problem.
Applied as approved by Zack after Andreas Schwab tested it for me
as I do not have access to a IA64 machine.
Thanks,
Andrew Pinski
2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
PR target/15546
* config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
as needed to be outputted.
Index: config/ia64/ia64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/ia64.h,v
retrieving revision 1.175
diff -u -p -r1.175 ia64.h
--- config/ia64/ia64.h 13 May 2004 06:40:00 -0000 1.175
+++ config/ia64/ia64.h 25 May 2004 16:56:21 -0000
@@ -1478,6 +1478,7 @@ do { \
fputs ("\tdata8.ua @iplt(", FILE); \
else \
fputs ("\tdata16.ua @iplt(", FILE); \
+ mark_decl_referenced (DECL); \
assemble_name (FILE, XSTR (XEXP (DECL_RTL (DECL), 0), 0)); \
fputs (")\n", FILE); \
if (TARGET_ILP32) \