diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-05-22 18:18:46 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-05-22 18:18:46 +0000 |
commit | 79bba51c2833a33d574533bf16ea63d97d201736 (patch) | |
tree | b730879ecc374205704b57c013a9fb062a350c7b /gcc/config | |
parent | 6f312d18d4788838bbd51c409a29b11ad8ccf009 (diff) | |
download | gcc-79bba51c2833a33d574533bf16ea63d97d201736.zip gcc-79bba51c2833a33d574533bf16ea63d97d201736.tar.gz gcc-79bba51c2833a33d574533bf16ea63d97d201736.tar.bz2 |
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
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ad0407d..b1d7be3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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); |