mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-16 13:30:13 +08:00
Handle OPT_SPECIAL_XXX in LTO
PR lto/54795 * lto-opts.c (lto_write_options): Also handle OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and OPT_SPECIAL_program_name. PR lto/55474 * lto-wrapper.c (merge_and_complain): Handle OPT_SPECIAL_unknown, OPT_SPECIAL_ignore, OPT_SPECIAL_program_name and OPT_SPECIAL_input_file. Co-Authored-By: Markus Trippelsdorf <markus@trippelsdorf.de> From-SVN: r193848
This commit is contained in:
parent
5a86083532
commit
169d8507ca
@ -1,3 +1,16 @@
|
||||
2012-11-27 H.J. Lu <hongjiu.lu@intel.com>
|
||||
Markus Trippelsdorf <markus@trippelsdorf.de>
|
||||
|
||||
PR lto/54795
|
||||
* lto-opts.c (lto_write_options): Also handle
|
||||
OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
|
||||
OPT_SPECIAL_program_name.
|
||||
|
||||
PR lto/55474
|
||||
* lto-wrapper.c (merge_and_complain): Handle
|
||||
OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
|
||||
OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
|
||||
|
||||
2012-11-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/52650
|
||||
|
@ -93,6 +93,20 @@ lto_write_options (void)
|
||||
{
|
||||
struct cl_decoded_option *option = &save_decoded_options[i];
|
||||
|
||||
/* Skip explicitly some common options that we do not need. */
|
||||
switch (option->opt_index)
|
||||
{
|
||||
case OPT_dumpbase:
|
||||
case OPT_SPECIAL_unknown:
|
||||
case OPT_SPECIAL_ignore:
|
||||
case OPT_SPECIAL_program_name:
|
||||
case OPT_SPECIAL_input_file:
|
||||
continue;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
/* Skip frontend and driver specific options here. */
|
||||
if (!(cl_options[option->opt_index].flags & (CL_COMMON|CL_TARGET|CL_LTO)))
|
||||
continue;
|
||||
@ -108,17 +122,6 @@ lto_write_options (void)
|
||||
if (cl_options[option->opt_index].flags & (CL_DRIVER|CL_WARNING))
|
||||
continue;
|
||||
|
||||
/* Skip explicitly some common options that we do not need. */
|
||||
switch (option->opt_index)
|
||||
{
|
||||
case OPT_dumpbase:
|
||||
case OPT_SPECIAL_input_file:
|
||||
continue;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
for (j = 0; j < option->canonical_option_num_elements; ++j)
|
||||
append_to_collect_gcc_options (&temporary_obstack, &first_p,
|
||||
option->canonical_option[j]);
|
||||
|
@ -393,6 +393,12 @@ merge_and_complain (struct cl_decoded_option **decoded_options,
|
||||
struct cl_decoded_option *foption = &fdecoded_options[i];
|
||||
switch (foption->opt_index)
|
||||
{
|
||||
case OPT_SPECIAL_unknown:
|
||||
case OPT_SPECIAL_ignore:
|
||||
case OPT_SPECIAL_program_name:
|
||||
case OPT_SPECIAL_input_file:
|
||||
break;
|
||||
|
||||
default:
|
||||
if (!(cl_options[foption->opt_index].flags & CL_TARGET))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user