Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common Gcc 5.3 seems to do fine compiling this for s...



details:   https://anonhg.NetBSD.org/src/rev/cbda337c9923
branches:  trunk
changeset: 344968:cbda337c9923
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Apr 30 13:12:13 2016 +0000

description:
Gcc 5.3 seems to do fine compiling this for sparc64, so exclude it
from the -O1 hack

diffstat:

 lib/csu/common/Makefile.inc |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 150e54576de2 -r cbda337c9923 lib/csu/common/Makefile.inc
--- a/lib/csu/common/Makefile.inc       Sat Apr 30 05:24:45 2016 +0000
+++ b/lib/csu/common/Makefile.inc       Sat Apr 30 13:12:13 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.28 2016/04/04 18:29:07 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.29 2016/04/30 13:12:13 martin Exp $
 
 .include <bsd.own.mk>
 
@@ -20,7 +20,8 @@
 # XXXGCC5 - GCC 5 miscompiles crtbeginS.c on many platforms.  on SPARC it
 # XXXGCC5   emits "clr %g1; call %g1", which is effectively jumping to zero.
 . if defined(HAVE_GCC) && ${HAVE_GCC} == 53 && \
-     ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "amd64"
+     ${CSU_MACHINE_ARCH} != "i386" && ${CSU_MACHINE_ARCH} != "amd64" && \
+     ${CSU_MACHINE_ARCH} != "sparc64"
 CFLAGS.crt0-common.c+= -O1
 CFLAGS.crtbeginS.c+=   -O1
 . endif



Home | Main Index | Thread Index | Old Index