re PR bootstrap/15546 (Bootstrap stage3: Undefined references to basic_string)
authorAndrew Pinski <pinskia@physics.uc.edu>
Sat, 22 May 2004 18:18:46 +0000 (18:18 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 22 May 2004 18:18:46 +0000 (18:18 +0000)
2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>

PR 15546
* config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
Call mark_decl_referenced on the SYMBOL_REF_DECL.

From-SVN: r82141

gcc/ChangeLog
gcc/config/i386/i386.c

index 2acb431be3d3d8c80c58dbbf61cf6f918d1c5299..eebf878f00fe76a3ed985b67eb7fcbaaa68c1dcc 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR 15546
+       * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
+       Call mark_decl_referenced on the SYMBOL_REF_DECL.
+
 2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * c-common.c (c_common_truthvalue_conversion): Handle
index ad0407d762384df2cdcdf5058e3c58e3f28c21e0..b1d7be3467f71eb995bc8d2c2684eaf7e2b5ba34 100644 (file)
@@ -6762,6 +6762,10 @@ output_pic_addr_const (FILE *file, rtx x, int code)
       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);