aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorRichard Sandiford <r.sandiford@uk.ibm.com>2009-06-02 19:15:26 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2009-06-02 19:15:26 +0000
commit8633c31574501e823ed7f28ed949c30e3b0b3430 (patch)
tree0f4771a15f743ed65ea96df6b7040943f74fd530 /gcc/gcc.c
parent70ed7339f79de8805e22745fa6ab4275ca002a46 (diff)
downloadgcc-8633c31574501e823ed7f28ed949c30e3b0b3430.zip
gcc-8633c31574501e823ed7f28ed949c30e3b0b3430.tar.gz
gcc-8633c31574501e823ed7f28ed949c30e3b0b3430.tar.bz2
pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
gcc/ * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program". * config/pa/pa-hpux10.h (LINK_SPEC): Likewise. * config/pa/pa-hpux11.h (LINK_SPEC): Likewise. * gcc.c (set_collect_gcc_options): Don't add -fwhole-program to COLLECT_GCC_OPTIONS. From-SVN: r148099
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 538be05..f0d986c 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4434,6 +4434,11 @@ set_collect_gcc_options (void)
if ((switches[i].live_cond & SWITCH_IGNORE) != 0)
continue;
+ /* Don't use -fwhole-program when compiling the init and fini routines,
+ since we'd wrongly assume that the routines aren't needed. */
+ if (strcmp (switches[i].part1, "fwhole-program") == 0)
+ continue;
+
obstack_grow (&collect_obstack, "'-", 2);
q = switches[i].part1;
while ((p = strchr (q, '\'')))