Commit 79bba51c by Andrew Pinski Committed by Zack Weinberg

re PR bootstrap/15546 (Bootstrap stage3: Undefined references to basic_string)

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
parent 6f312d18
2004-05-22 Andrew Pinski <pinskia@physics.uc.edu> 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 * c-common.c (c_common_truthvalue_conversion): Handle
UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR, UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
ORDERED_EXPR, and UNORDERED_EXPR as comparison operators, ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
......
...@@ -6762,6 +6762,10 @@ output_pic_addr_const (FILE *file, rtx x, int code) ...@@ -6762,6 +6762,10 @@ output_pic_addr_const (FILE *file, rtx x, int code)
break; break;
case SYMBOL_REF: 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)); assemble_name (file, XSTR (x, 0));
if (!TARGET_MACHO && code == 'P' && ! SYMBOL_REF_LOCAL_P (x)) if (!TARGET_MACHO && code == 'P' && ! SYMBOL_REF_LOCAL_P (x))
fputs ("@PLT", file); fputs ("@PLT", file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment