Hi Joseph,
This patch adds a ToLower .opt feature, for option arguments that are
case-insensitive and should be converted to a canonical lowercase
form.
This is relevant to at least mips, mn10300 and rx. This patch makes
rx use it, thereby causing an existing spec that tested only for a
lowercase option form to start to work correctly with both variants
(since specs only need to match canonical options).
Thanks!
Bootstrapped with no regressions on x86_64-unknown-linux-gnu, and
tested building cc1 and xgcc for cross to rx-elf. Will commit to
trunk in the absence of target maintainer objections.
No objections and definite approval from me.
2011-04-01 Joseph Myers<jos...@codesourcery.com>
* doc/options.texi (ToLower): Document.
* opt-functions.awk (switch_bit_fields): Initialize cl_tolower
field.
* opts-common.c (decode_cmdline_option): Handle cl_tolower.
* opts.h (cl_option): Add cl_tolower field.
* config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
arguments with lowercase strings.
* config/rx/rx.opt (mcpu=): Add ToLower.
* config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
argument.
Cheers
Nick