aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-10-07 09:11:28 +0000
committerJan Hubicka <jh@suse.cz>2009-10-07 09:11:28 +0000
commit09734029582ce7cdb1da8604c96ede82b99c21eb (patch)
treede925db224c03a06ee28967d52e6dc37cbad5f81 /gcc/collect2.c
parent72babcf65562177d5d121b99c09bd156872c1bca (diff)
* collect2.c (main): Add -fno-whole-program.
* gcc.c (set_collect_gcc_options): Do not remove whole program here. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@152521 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 20caa451f89..01ef4317379 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1271,8 +1271,8 @@ main (int argc, char **argv)
obstack_free (&temporary_obstack, temporary_firstobj);
/* -fno-profile-arcs -fno-test-coverage -fno-branch-probabilities
- -fno-exceptions -w */
- num_c_args += 5;
+ -fno-exceptions -w -fno-whole-program */
+ num_c_args += 6;
c_argv = XCNEWVEC (char *, num_c_args);
c_ptr = CONST_CAST2 (const char **, char **, c_argv);
@@ -1440,6 +1440,7 @@ main (int argc, char **argv)
*c_ptr++ = "-fno-branch-probabilities";
*c_ptr++ = "-fno-exceptions";
*c_ptr++ = "-w";
+ *c_ptr++ = "-fno-whole-program";
/* !!! When GCC calls collect2,
it does not know whether it is calling collect2 or ld.