lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified at the command...
authorJan Hubicka <jh@suse.cz>
Wed, 5 Jan 2011 16:07:09 +0000 (17:07 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 5 Jan 2011 16:07:09 +0000 (16:07 +0000)
* lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
at the command line.

From-SVN: r168520

gcc/ChangeLog
gcc/lto-wrapper.c

index 7b7e7ada06aa4544449230ebee8c571411bb6e88..0ad56342feff184b063b77a17ec6f3744b48ae6a 100644 (file)
@@ -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
index 143e3fd1b6623b11926dd567fa1782731b248c6b..6f106a31f453e8d11b34d6e2c67c22e40f74d0ed 100644 (file)
@@ -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);
 }