From d9de9cad96c152a971e7113f3b15030b9d649467 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 8 Sep 2008 04:26:15 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 +++++++ gcc/config/pa/pa-hpux.h | 6 ++++-- gcc/config/pa/pa-hpux10.h | 6 ++++-- gcc/config/pa/pa-hpux11.h | 3 ++- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a0f9fada96b..67faf0009f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2008-09-08 John David Anglin + + PR driver/37409 + * pa-hpux.h (LINK_SPEC): Strip -fwhole-program. + * pa-hpux10.h (LINK_SPEC): Likewise. + * pa-hpux11.h (LINK_SPEC): Likewise. +` 2008-09-07 John David Anglin * pa32-regs.h (IRA_COVER_CLASSES): Define. diff --git a/gcc/config/pa/pa-hpux.h b/gcc/config/pa/pa-hpux.h index cd85cdc2d27..7dc7f4034f3 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}" + "%