Commit 8508ae1d by Richard Biener Committed by Richard Biener

re PR driver/91130 (-MF clashes with -flto on aarch64)

2019-08-12  Richard Biener  <rguenther@suse.de>

	PR driver/91130
	* lto-wrapper.c (get_options_from_collect_gcc_options): Remove
	lang_mask option, always use CL_DRIVER.
	(get_options_from_collect_gcc_options): Adjust.
	(find_and_merge_options): Likewise.
	(run_gcc): Likewise.

From-SVN: r274309
parent 8467866f
2019-08-12 Richard Biener <rguenther@suse.de>
PR driver/91130
* lto-wrapper.c (get_options_from_collect_gcc_options): Remove
lang_mask option, always use CL_DRIVER.
(get_options_from_collect_gcc_options): Adjust.
(find_and_merge_options): Likewise.
(run_gcc): Likewise.
2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* ipa-predicate.c (add_condition): Restore inverted test. * ipa-predicate.c (add_condition): Restore inverted test.
......
...@@ -128,12 +128,11 @@ maybe_unlink (const char *file) ...@@ -128,12 +128,11 @@ maybe_unlink (const char *file)
#define DUMPBASE_SUFFIX ".ltrans18446744073709551615" #define DUMPBASE_SUFFIX ".ltrans18446744073709551615"
/* Create decoded options from the COLLECT_GCC and COLLECT_GCC_OPTIONS /* Create decoded options from the COLLECT_GCC and COLLECT_GCC_OPTIONS
environment according to LANG_MASK. */ environment. */
static void static void
get_options_from_collect_gcc_options (const char *collect_gcc, get_options_from_collect_gcc_options (const char *collect_gcc,
const char *collect_gcc_options, const char *collect_gcc_options,
unsigned int lang_mask,
struct cl_decoded_option **decoded_options, struct cl_decoded_option **decoded_options,
unsigned int *decoded_options_count) unsigned int *decoded_options_count)
{ {
...@@ -176,8 +175,7 @@ get_options_from_collect_gcc_options (const char *collect_gcc, ...@@ -176,8 +175,7 @@ get_options_from_collect_gcc_options (const char *collect_gcc,
argc = obstack_object_size (&argv_obstack) / sizeof (void *) - 1; argc = obstack_object_size (&argv_obstack) / sizeof (void *) - 1;
argv = XOBFINISH (&argv_obstack, const char **); argv = XOBFINISH (&argv_obstack, const char **);
decode_cmdline_options_to_array (argc, (const char **)argv, decode_cmdline_options_to_array (argc, (const char **)argv, CL_DRIVER,
lang_mask,
decoded_options, decoded_options_count); decoded_options, decoded_options_count);
obstack_free (&argv_obstack, NULL); obstack_free (&argv_obstack, NULL);
} }
...@@ -1009,8 +1007,7 @@ find_and_merge_options (int fd, off_t file_offset, const char *prefix, ...@@ -1009,8 +1007,7 @@ find_and_merge_options (int fd, off_t file_offset, const char *prefix,
{ {
struct cl_decoded_option *f2decoded_options; struct cl_decoded_option *f2decoded_options;
unsigned int f2decoded_options_count; unsigned int f2decoded_options_count;
get_options_from_collect_gcc_options (collect_gcc, get_options_from_collect_gcc_options (collect_gcc, fopts,
fopts, CL_DRIVER,
&f2decoded_options, &f2decoded_options,
&f2decoded_options_count); &f2decoded_options_count);
if (!fdecoded_options) if (!fdecoded_options)
...@@ -1282,7 +1279,6 @@ run_gcc (unsigned argc, char *argv[]) ...@@ -1282,7 +1279,6 @@ run_gcc (unsigned argc, char *argv[])
fatal_error (input_location, fatal_error (input_location,
"environment variable %<COLLECT_GCC_OPTIONS%> must be set"); "environment variable %<COLLECT_GCC_OPTIONS%> must be set");
get_options_from_collect_gcc_options (collect_gcc, collect_gcc_options, get_options_from_collect_gcc_options (collect_gcc, collect_gcc_options,
CL_DRIVER,
&decoded_options, &decoded_options,
&decoded_options_count); &decoded_options_count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment