]> git.ipfire.org Git - thirdparty/gcc.git/commit
[MIPS] Disable -mbranch-likely for -Os when targetting generic arch
authorrts <rts@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Oct 2016 07:58:54 +0000 (07:58 +0000)
committerrts <rts@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Oct 2016 07:58:54 +0000 (07:58 +0000)
commite55aa189d4c22c3e7992ebfbb7a90514647e219a
treeac59a41dc078d46c59060ef578565c45c9befbbd
parent5239471b2dd3e8b1418e05697773a7663968230f
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240965 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/mips/mips-cpus.def
gcc/config/mips/mips.c
gcc/config/mips/mips.h