diff options
Diffstat (limited to 'gcc/opt-read.awk')
-rw-r--r-- | gcc/opt-read.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/opt-read.awk b/gcc/opt-read.awk index 6ae4db9268a..ce3617c8d4a 100644 --- a/gcc/opt-read.awk +++ b/gcc/opt-read.awk @@ -97,10 +97,14 @@ BEGIN { enum_name = opt_args_non_empty("Enum", props) string = opt_args_non_empty("String", props) value = opt_args_non_empty("Value", props) + set = opt_args("Set", props) val_flags = "0" val_flags = val_flags \ test_flag("Canonical", props, "| CL_ENUM_CANONICAL") \ test_flag("DriverOnly", props, "| CL_ENUM_DRIVER_ONLY") + if (set != "") + val_flags = val_flags "| ((" set \ + ") << CL_ENUM_SET_SHIFT)" enum_data[enum_name] = enum_data[enum_name] \ " { " quote string quote ", " value ", " val_flags \ " },\n" |