This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/15546] [3.5 Regression] Bootstrap stage3: Undefined references to basic_string
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2004 13:31:14 -0000
- Subject: [Bug bootstrap/15546] [3.5 Regression] Bootstrap stage3: Undefined references to basic_string
- References: <20040519233425.15546.James.W.Mckelvey@jpl.nasa.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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