Thanks for the updated patch. This is mostly looking good to me,
but I think it needs another round.
Sandra Loosemore <sandra@codesourcery.com> writes:
* I've implemented Richard's suggestion of taking out the call to
mips_set_mips16_mode in override_options, and just waiting until the
per-function hook has been invoked for the first time.
Hmm. The idea was that -mips16 should just specify the default for
attributeless functions, so I was thinking that you should still keep
the code that clears the MIPS16 flag.
You'd need to change TARGET_CPU_CPP_BUILTINS to use mips_base_mips16
rather than TARGET_MIPS16. You'd also need to keep the code that sets
targetm.have_tls in override_options, and use a new "base" variable to
make that the default. But would much more need to change?