diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2008-09-08 04:26:15 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2008-09-08 04:26:15 +0000 |
commit | d9de9cad96c152a971e7113f3b15030b9d649467 (patch) | |
tree | 5d74c3a2b377fd7aed95bbff8df8c829d9fba601 /gcc/config/pa | |
parent | b87c8930acf4865366653ef72d6e213578ad5116 (diff) | |
download | gcc-d9de9cad96c152a971e7113f3b15030b9d649467.zip gcc-d9de9cad96c152a971e7113f3b15030b9d649467.tar.gz gcc-d9de9cad96c152a971e7113f3b15030b9d649467.tar.bz2 |
re PR driver/37409 (-fwhole-program option breaks collect2-generated global constructors)
PR driver/37409
* pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
* pa-hpux10.h (LINK_SPEC): Likewise.
* pa-hpux11.h (LINK_SPEC): Likewise.
`
From-SVN: r140099
Diffstat (limited to 'gcc/config/pa')
-rw-r--r-- | gcc/config/pa/pa-hpux.h | 6 | ||||
-rw-r--r-- | gcc/config/pa/pa-hpux10.h | 6 | ||||
-rw-r--r-- | gcc/config/pa/pa-hpux11.h | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/gcc/config/pa/pa-hpux.h b/gcc/config/pa/pa-hpux.h index cd85cdc..7dc7f40 100644 --- a/gcc/config/pa/pa-hpux.h +++ b/gcc/config/pa/pa-hpux.h @@ -97,10 +97,12 @@ along with GCC; see the file COPYING3. If not see #undef LINK_SPEC #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_PA_11) #define LINK_SPEC \ - "%{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}" + "%<fwhole-program\ + %{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}" #else #define LINK_SPEC \ - "%{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}" + "%<fwhole-program\ + %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{g*:-a archive} %{shared:-b}" #endif /* hpux8 and later have C++ compatible include files, so do not diff --git a/gcc/config/pa/pa-hpux10.h b/gcc/config/pa/pa-hpux10.h index a05a5f1..13143aa 100644 --- a/gcc/config/pa/pa-hpux10.h +++ b/gcc/config/pa/pa-hpux10.h @@ -84,7 +84,8 @@ along with GCC; see the file COPYING3. If not see #undef LINK_SPEC #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_PA_11) #define LINK_SPEC \ - "%{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}\ + "%<fwhole-program\ + %{!mpa-risc-1-0:%{!march=1.0:%{static:-L/lib/pa1.1 -L/usr/lib/pa1.1 }}}\ %{!shared:%{p:-L/lib/libp %{!static:\ %nWarning: consider linking with `-static' as system libraries with\n\ %n profiling support are only provided in archive format}}}\ @@ -95,7 +96,8 @@ along with GCC; see the file COPYING3. If not see %{static:-a archive} %{shared:-b}" #else #define LINK_SPEC \ - "%{!shared:%{p:-L/lib/libp %{!static:\ + "%<fwhole-program\ + %{!shared:%{p:-L/lib/libp %{!static:\ %nWarning: consider linking with `-static' as system libraries with\n\ %n profiling support are only provided in archive format}}}\ %{!shared:%{pg:-L/lib/libp %{!static:\ diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index 8d4a807..b45109d 100644 --- a/gcc/config/pa/pa-hpux11.h +++ b/gcc/config/pa/pa-hpux11.h @@ -106,7 +106,8 @@ along with GCC; see the file COPYING3. If not see want dereferencing of a NULL pointer to cause a SEGV. */ #undef LINK_SPEC #define LINK_SPEC \ - "%{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\ + "%<fwhole-program\ + %{!shared:%{p:-L/lib/libp -L/usr/lib/libp %{!static:\ %nWarning: consider linking with `-static' as system libraries with\n\ %n profiling support are only provided in archive format}}}\ %{!shared:%{pg:-L/lib/libp -L/usr/lib/libp %{!static:\ |