[MIPS] Disable -mbranch-likely for -Os when targetting generic arch
authorRobert Suchanek <robert.suchanek@imgtec.com>
Tue, 11 Oct 2016 07:58:54 +0000 (07:58 +0000)
committerRobert Suchanek <rts@gcc.gnu.org>
Tue, 11 Oct 2016 07:58:54 +0000 (07:58 +0000)
commit7c507664891d053d0e95e3c7f179a2043c2b1210
treeac59a41dc078d46c59060ef578565c45c9befbbd
parentec1db2a9949e828d4b65757c8a3de2bde37ef493
[MIPS] Disable -mbranch-likely for -Os when targetting generic arch

gcc/
* config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
PTF_AVOID_BRANCHLIKELY_SPEED for others.
(mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune flags.
* config/mips/mips.c (mips_option_override): Enable the branch likely
depending on the tune flags and optimization level.
* config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
(PTF_AVOID_BRANCHLIKELY_SPEED): Define.
(PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
(PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.

From-SVN: r240965
gcc/ChangeLog
gcc/config/mips/mips-cpus.def
gcc/config/mips/mips.c
gcc/config/mips/mips.h