OSDN Git Service

2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 May 2004 18:18:46 +0000 (18:18 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 May 2004 18:18:46 +0000 (18:18 +0000)
PR 15546
* config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
Call mark_decl_referenced on the SYMBOL_REF_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82141 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2acb431..eebf878 100644 (file)
@@ -1,5 +1,11 @@
 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
        UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
        ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
index ad0407d..b1d7be3 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);