diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-02-20 10:49:48 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2016-02-20 10:49:48 +0000 |
commit | ee409ab24a4dc187de52e53b1985c741adaa7d71 (patch) | |
tree | ad88da4ec9d26244c7e98827ea9840d6b8d3d513 | |
parent | 646b3a64a93522b7ef3d52f20ffc16d957105503 (diff) |
On alpha with -O2 gcc gets an ICE on 2 files.
With help of jsg@
-rw-r--r-- | lib/mesa/Makefile.bsd-wrapper | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/mesa/Makefile.bsd-wrapper b/lib/mesa/Makefile.bsd-wrapper index bbf60d4a4..a08993c67 100644 --- a/lib/mesa/Makefile.bsd-wrapper +++ b/lib/mesa/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.4 2015/12/20 12:31:01 jsg Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.5 2016/02/20 10:49:47 matthieu Exp $ .include <bsd.own.mk> @@ -38,6 +38,26 @@ CONFIGURE_ARGS= --with-dri-drivers=${DRI_DRIVERS} \ CONFIGURE_ARGS+= USER_CFLAGS="-march=i586" USER_CXXFLAGS="-march=i586" .endif +.if ${MACHINE} == alpha +# -O2 causes gcc ICE on main/format_pack.c and program/prog_execute.c +O1= -fdefer-pop -fguess-branch-probability -fcprop-registers \ + -fif-conversion -fif-conversion2 -ftree-ccp -ftree-dce \ + -ftree-dominator-opts -ftree-dse -ftree-ter -ftree-lrs -ftree-sra \ + -ftree-copyrename -ftree-fre -ftree-ch -funit-at-a-time \ + -fmerge-constants -fomit-frame-pointer + +O2= ${O1} -fthread-jumps -fcrossjumping -foptimize-sibling-calls \ + -fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm \ + -fexpensive-optimizations -frerun-cse-after-loop \ + -fcaller-saves -fpeephole2 -fschedule-insns -fschedule-insns2 \ + -fsched-interblock -fsched-spec -fregmove \ + -fdelete-null-pointer-checks -freorder-blocks \ + -freorder-functions -falign-functions -falign-jumps -falign-loops \ + -falign-labels -ftree-pre + +CONFIGURE_ARGS+= USER_CFLAGS="-O0 ${O2}" +.endif + depend: .if !exists(${.OBJDIR}/src/util/format_srgb.c) lndir -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR} |