This is the mail archive of the 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]
Other format: [Raw text]

[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

Applied as approved by Zack after Andreas Schwab tested it for me
as I do not have access to a IA64 machine.

Andrew Pinski

2004-05-25 Andrew Pinski <>

        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 ("\ @iplt(", FILE);				\
       else								\
         fputs ("\ @iplt(", FILE);				\
+      mark_decl_referenced (DECL);					\
       assemble_name (FILE, XSTR (XEXP (DECL_RTL (DECL), 0), 0));	\
       fputs (")\n", FILE);						\
       if (TARGET_ILP32)							\

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