aboutsummaryrefslogtreecommitdiff
path: root/gcc/optc-gen.awk
diff options
context:
space:
mode:
authorMatthias Klose <doko@gcc.gnu.org>2014-05-08 22:17:43 +0000
committerMatthias Klose <doko@gcc.gnu.org>2014-05-08 22:17:43 +0000
commita82122df1d55d2e19e8d7442d952d13a4b3287f0 (patch)
tree8f874100e169b877a894892a7e313829194f9d46 /gcc/optc-gen.awk
parent0af7b53a8b616c230fcaa2eb92901e4ed96782a4 (diff)
downloadgcc-a82122df1d55d2e19e8d7442d952d13a4b3287f0.zip
gcc-a82122df1d55d2e19e8d7442d952d13a4b3287f0.tar.gz
gcc-a82122df1d55d2e19e8d7442d952d13a4b3287f0.tar.bz2
re PR driver/61106 ([4.8/4.9] impliedness of -Wunused-parameter depends on -W option ordering)
gcc/ 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org> Matthias Klose <doko@ubuntu.com> PR driver/61106 * optc-gen.awk: Fix option handling for -Wunused-parameter. gcc/testsuite/ 2014-05-08 Matthias Klose <doko@ubuntu.com> PR driver/61106 * gcc-dg/unused-8a.c: New. * gcc-dg/unused-8b.c: Likewise. From-SVN: r210246
Diffstat (limited to 'gcc/optc-gen.awk')
-rw-r--r--gcc/optc-gen.awk6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/optc-gen.awk b/gcc/optc-gen.awk
index a091b72..b70e4fe 100644
--- a/gcc/optc-gen.awk
+++ b/gcc/optc-gen.awk
@@ -406,11 +406,13 @@ for (i = 0; i < n_enabledby; i++) {
if (opt_var_name != "") {
condition = "!opts_set->x_" opt_var_name
if (thisenableif[j] != "") {
- condition = condition " && (" thisenableif[j] ")"
+ value = "(" thisenableif[j] ")"
+ } else {
+ value = "value"
}
print " if (" condition ")"
print " handle_generated_option (opts, opts_set,"
- print " " opt_enum(thisenable[j]) ", NULL, value,"
+ print " " opt_enum(thisenable[j]) ", NULL, " value ","
print " lang_mask, kind, loc, handlers, dc);"
} else {
print "#error " thisenable[j] " does not have a Var() flag"