aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2012-11-27 13:56:31 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2012-11-27 05:56:31 -0800
commit169d8507caebe73a977bcdb9f16cbb6254e7efd8 (patch)
tree1ba1c003e58f2e70873c2d801c76c88b4b22bb13 /gcc/lto-wrapper.c
parent5a8608353261070997bb1bc54e16f5eba8436b5d (diff)
downloadgcc-169d8507caebe73a977bcdb9f16cbb6254e7efd8.zip
gcc-169d8507caebe73a977bcdb9f16cbb6254e7efd8.tar.gz
gcc-169d8507caebe73a977bcdb9f16cbb6254e7efd8.tar.bz2
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
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 1f4d212..24de7433 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -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;