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

[Bug bootstrap/15546] [3.5 Regression] Bootstrap stage3: Undefined references to basic_string


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-21 13:31 -------
For x86_64, can someone test this patch:
Index: i386.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.668
diff -u -p -r1.668 i386.c
--- i386.c	17 May 2004 15:23:12 -0000	1.668
+++ i386.c	21 May 2004 13:30:26 -0000
@@ -6762,6 +6762,10 @@ output_pic_addr_const (FILE *file, rtx x
       break;
 
     case SYMBOL_REF:
+     /* Mark the decl as referenced so that cgraph will output the function.  */
+     if (SYMBOL_REF_DECL (x))
+       mark_decl_referenced (SYMBOL_REF_DECL (x));
+
       assemble_name (file, XSTR (x, 0));
       if (!TARGET_MACHO && code == 'P' && ! SYMBOL_REF_LOCAL_P (x))
 	fputs ("@PLT", file);

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15546


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