diff options
author | Jan Hubicka <jh@suse.cz> | 2011-01-05 17:07:09 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-01-05 16:07:09 +0000 |
commit | be2862278a6839e196a06e5e2df8b3c16755bbf9 (patch) | |
tree | e3dcb3fe4f2adfc9a96d3722e0f6179a952cb86d | |
parent | 644e637fcad77383a8f5711901f7e629e8a71e5f (diff) | |
download | gcc-be2862278a6839e196a06e5e2df8b3c16755bbf9.zip gcc-be2862278a6839e196a06e5e2df8b3c16755bbf9.tar.gz gcc-be2862278a6839e196a06e5e2df8b3c16755bbf9.tar.bz2 |
lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified at the command line.
* lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
at the command line.
From-SVN: r168520
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto-wrapper.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7b7e7ad..0ad5634 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-01-05 Jan Hubicka <jh@suse.cz> + + * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified + at the command line. + 2011-01-05 Martin Jambor <mjambor@suse.cz> PR lto/47162 diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 143e3fd..6f106a3 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -422,7 +422,7 @@ run_gcc (unsigned argc, char *argv[]) argv_ptr[1] = "-o"; argv_ptr[2] = flto_out; } - else if (lto_mode == LTO_MODE_WHOPR) + else { const char *list_option = "-fltrans-output-list="; size_t list_option_len = strlen (list_option); @@ -457,8 +457,6 @@ run_gcc (unsigned argc, char *argv[]) argv_ptr[2] = "-fwpa"; } - else - fatal ("invalid LTO mode"); /* Append the input objects and possible preceeding arguments. */ for (i = 1; i < argc; ++i) @@ -473,7 +471,7 @@ run_gcc (unsigned argc, char *argv[]) free (flto_out); flto_out = NULL; } - else if (lto_mode == LTO_MODE_WHOPR) + else { FILE *stream = fopen (ltrans_output_file, "r"); FILE *mstream = NULL; @@ -615,8 +613,6 @@ cont: free (input_names); free (list_option_full); } - else - fatal ("invalid LTO mode"); obstack_free (&env_obstack, NULL); } |