aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-10-07 11:11:28 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2009-10-07 09:11:28 +0000
commit13291c16c043afabb7411422aa811e56d51b51fe (patch)
treede925db224c03a06ee28967d52e6dc37cbad5f81 /gcc/gcc.c
parentb20996ff13afd304d44aafd0966501cc4bd10b97 (diff)
downloadgcc-13291c16c043afabb7411422aa811e56d51b51fe.zip
gcc-13291c16c043afabb7411422aa811e56d51b51fe.tar.gz
gcc-13291c16c043afabb7411422aa811e56d51b51fe.tar.bz2
collect2.c (main): Add -fno-whole-program.
* collect2.c (main): Add -fno-whole-program. * gcc.c (set_collect_gcc_options): Do not remove whole program here. From-SVN: r152521
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 033c99f..d94462d 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4636,11 +4636,6 @@ 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, '\'')))