mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-24 19:21:12 +08:00
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
This commit is contained in:
parent
b20996ff13
commit
13291c16c0
@ -1,3 +1,8 @@
|
||||
2009-10-07 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* collect2.c (main): Add -fno-whole-program.
|
||||
* gcc.c (set_collect_gcc_options): Do not remove whole program here.
|
||||
|
||||
2009-10-07 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones has
|
||||
|
@ -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.
|
||||
|
@ -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, '\'')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user