~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/pr61106.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Proposed patch for PR driver/61106
 
2
 
 
3
--- a/src/gcc/optc-gen.awk
 
4
+++ b/src/gcc/optc-gen.awk
 
5
@@ -404,15 +404,17 @@ for (i = 0; i < n_enabledby; i++) {
 
6
     for (j = 1; j < n_enables; j++) {
 
7
         opt_var_name = var_name(flags[opt_numbers[thisenable[j]]]);
 
8
         if (opt_var_name != "") {
 
9
             condition = "!opts_set->x_" opt_var_name
 
10
             if (thisenableif[j] != "") {
 
11
-                condition = condition " && (" thisenableif[j] ")"
 
12
+                value = "(" thisenableif[j] ")"
 
13
+            } else {
 
14
+                value = "value"
 
15
             }
 
16
             print "      if (" condition ")"
 
17
             print "        handle_generated_option (opts, opts_set,"
 
18
-            print "                                 " opt_enum(thisenable[j]) ", NULL, value,"
 
19
+            print "                                 " opt_enum(thisenable[j]) ", NULL, " value ","
 
20
             print "                                 lang_mask, kind, loc, handlers, dc);"
 
21
         } else {
 
22
             print "#error " thisenable[j] " does not have a Var() flag"
 
23
         }
 
24
     }