+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
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);
argv_ptr[2] = "-fwpa";
}
- else
- fatal ("invalid LTO mode");
/* Append the input objects and possible preceeding arguments. */
for (i = 1; i < argc; ++i)
free (flto_out);
flto_out = NULL;
}
- else if (lto_mode == LTO_MODE_WHOPR)
+ else
{
FILE *stream = fopen (ltrans_output_file, "r");
FILE *mstream = NULL;
free (input_names);
free (list_option_full);
}
- else
- fatal ("invalid LTO mode");
obstack_free (&env_obstack, NULL);
}