diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-07 09:11:28 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-07 09:11:28 +0000 |
commit | 48e61da922ae61b8e3bf3b3ad605940e557e7e6b (patch) | |
tree | de925db224c03a06ee28967d52e6dc37cbad5f81 /gcc/collect2.c | |
parent | 59dd48301d310463d3fffaf4c68d8df57fa20073 (diff) | |
download | gcc-48e61da922ae61b8e3bf3b3ad605940e557e7e6b.tar.gz |
* collect2.c (main): Add -fno-whole-program.
* gcc.c (set_collect_gcc_options): Do not remove whole program here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152521 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 5 |
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. |