diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2009-05-25 12:12:08 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2009-05-25 12:12:08 +0000 |
commit | 0adcf178adc586e3e276d7f838a33dfa02772884 (patch) | |
tree | a4d68ff2f1498778f481033eae2e8955769d4686 /gcc | |
parent | 12aaf609641ef0592f2f3265852ad5a9aa1f1f0f (diff) | |
download | gcc-0adcf178adc586e3e276d7f838a33dfa02772884.zip gcc-0adcf178adc586e3e276d7f838a33dfa02772884.tar.gz gcc-0adcf178adc586e3e276d7f838a33dfa02772884.tar.bz2 |
re PR bootstrap/40027 (i686-pc-solaris2.10 bootstrap fails using Sun ld)
PR bootstrap/40027
* config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
* config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
From-SVN: r147845
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 10 | ||||
-rw-r--r-- | gcc/config/i386/sol2.h | 8 |
3 files changed, 19 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5696b43..cbcd386 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + PR bootstrap/40027 + * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing. + * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define. + 2009-05-25 Ira Rosen <irar@il.ibm.com> PR tree-optimization/40238 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 205691f..55ec1d9 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7433,10 +7433,12 @@ ix86_setup_frame_addresses (void) cfun->machine->accesses_prev_frame = 1; } -#if (defined(HAVE_GAS_HIDDEN) && (SUPPORTS_ONE_ONLY - 0)) || TARGET_MACHO -# define USE_HIDDEN_LINKONCE 1 -#else -# define USE_HIDDEN_LINKONCE 0 +#ifndef USE_HIDDEN_LINKONCE +# if (defined(HAVE_GAS_HIDDEN) && (SUPPORTS_ONE_ONLY - 0)) || TARGET_MACHO +# define USE_HIDDEN_LINKONCE 1 +# else +# define USE_HIDDEN_LINKONCE 0 +# endif #endif static int pic_labels_used; diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 1d21cd9..4c2dfe9 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -1,6 +1,6 @@ /* Target definitions for GCC for Intel 80386 running Solaris 2 Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2007, 2008 Free Software Foundation, Inc. + 2004, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Fred Fish (fnf@cygnus.com). This file is part of GCC. @@ -112,3 +112,9 @@ along with GCC; see the file COPYING3. If not see /* We do not need NT_VERSION notes. */ #undef X86_FILE_START_VERSION_DIRECTIVE #define X86_FILE_START_VERSION_DIRECTIVE false + +/* Only recent versions of Solaris 11 ld properly support hidden .gnu.linkonce + sections, so don't use them. */ +#ifndef TARGET_GNU_LD +#define USE_HIDDEN_LINKONCE 0 +#endif |