diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2013-02-19 00:04:49 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2013-02-19 00:04:49 +0000 |
commit | 135204ddd3bf1f3885db364c109bf977f5067e8f (patch) | |
tree | 7a29bd18e10dbd4f5b64765ae5b8f07a5bda81db /gcc/config/mips | |
parent | f6007d99f88822a517d15c6e56dcbfa66e8b5dec (diff) | |
download | gcc-135204ddd3bf1f3885db364c109bf977f5067e8f.zip gcc-135204ddd3bf1f3885db364c109bf977f5067e8f.tar.gz gcc-135204ddd3bf1f3885db364c109bf977f5067e8f.tar.bz2 |
re PR target/52555 (ICE unrecognizable insn with -ffast-math and __attribute__((optimize(xx))))
PR target/52555
* genopinit.c (raw_optab_handler): Use this_fn_optabs.
(swap_optab_enable): Same.
(init_all_optabs): Use argument instead of global.
* tree.h (struct tree_optimization_option): New field
target_optabs.
* expr.h (init_all_optabs): Add argument to prototype.
(TREE_OPTIMIZATION_OPTABS): New.
(save_optabs_if_changed): Protoize.
* optabs.h: Declare this_fn_optabs.
* optabs.c (save_optabs_if_changed): New.
Declare this_fn_optabs.
(init_optabs): Add argument to init_all_optabs() call.
* function.c (invoke_set_current_function_hook): Handle per
function optabs.
* function.h (struct function): New field optabs.
* config/mips/mips.c (mips_set_mips16_mode): Handle when
optimization_current_node has changed.
* target-globals.h (save_target_globals_default_opts): Protoize.
* target-globals.c (save_target_globals_default_opts): New.
c-family/
* c-common.c (handle_optimize_attribute): Call
save_optabs_if_changed.
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r196129
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index b203cdd..252e828 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -16313,7 +16313,7 @@ mips_set_mips16_mode (int mips16_p) if (mips16_p) { if (!mips16_globals) - mips16_globals = save_target_globals (); + mips16_globals = save_target_globals_default_opts (); else restore_target_globals (mips16_globals); } |