Mercurial > hg > release > icedtea7-forest-2.5 > hotspot
changeset 5845:383de087ee57 icedtea-2.5.6
PR2502: Remove -fno-tree-vectorize workaround now http://gcc.gnu.org/PR63341 is fixed
author | andrew |
---|---|
date | Thu, 09 Jul 2015 02:31:11 +0100 |
parents | 235355f70290 |
children | 3f6e602a1357 |
files | make/linux/makefiles/gcc.make |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/make/linux/makefiles/gcc.make Tue Jul 07 14:29:19 2015 +0100 +++ b/make/linux/makefiles/gcc.make Thu Jul 09 02:31:11 2015 +0100 @@ -107,6 +107,8 @@ endif ARCHFLAG/ppc64 = -m64 # gcc bug http://gcc.gnu.org/PR63341 in ppc code generation requires -fno-tree-vectorize for now +# Fixed in GCC 5 and later +ifeq "$(shell expr \( $(CC_VER_MAJOR) \< 5 \) )" "1" ARCHFLAG/ppc += -fno-tree-vectorize ARCHFLAG/ppc64 += -fno-tree-vectorize ifeq ($(TYPE),ZERO) @@ -120,6 +122,7 @@ ARCHFLAG/zero += -fno-tree-vectorize endif endif +endif CFLAGS += $(ARCHFLAG) AOUT_FLAGS += $(ARCHFLAG)