The following patch allows to specify that one option is enabled if two other options are enabled at the same time. The code only handles two options and not an arbitrary number because that is simpler and we don't need more (for now).
Bootstrapped and regression tested on x86_64-linux-gnu. OK? 2012-10-15 Manuel López-Ibáñez <m...@gcc.gnu.org> PR c/53063 PR c/40989 * doc/options.texi (EnabledBy): Document new form. * optc-gen.awk: Handle new form of EnabledBy. * common.opt (Wunused-but-set-parameter): Use EnabledBy. (Wunused-parameter): Likewise. * opts.c (finish_options): Do not handle them explicitly. * opt-functions.awk (search_var_name): New.
enabledby_2opts.diff
Description: Binary data