Module Name: src
Committed By: christos
Date: Sat Sep 3 15:47:54 UTC 2016
Modified Files:
src/external/gpl3/gcc/usr.bin/backend: Makefile
Log Message:
gcc generates incorrect jump tables with -fPIE
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/usr.bin/backend/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/usr.bin/backend/Makefile
diff -u src/external/gpl3/gcc/usr.bin/backend/Makefile:1.32 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.33
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.32 Thu Jun 16 23:27:50 2016
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile Sat Sep 3 11:47:54 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2016/06/17 03:27:50 skrll Exp $
+# $NetBSD: Makefile,v 1.33 2016/09/03 15:47:54 christos Exp $
LIBISPRIVATE= yes
@@ -511,7 +511,9 @@ CFLAGS+= -Wno-stack-protector
.if ${GCC_MACHINE_ARCH} == "m68000" || ${GCC_MACHINE_ARCH} == "m68k" || \
${GCC_MACHINE_ARCH} == "coldfire"
-COPTS.tree-loop-distribution.c= -O2
+COPTS.tree-loop-distribution.c+=-O2
+COPTS.generic-match.c+=-fno-jump-tables
+COPTS.gimple-match.c+=-fno-jump-tables
.endif