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
+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
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);