Module Name: src
Committed By: mrg
Date: Mon Jul 4 21:54:18 UTC 2011
Modified Files:
src/lib/csu/sparc64: Makefile
Log Message:
XXX: for now, build sparc64 csu with -O1 if using GCC 4.5.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/csu/sparc64/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/csu/sparc64/Makefile
diff -u src/lib/csu/sparc64/Makefile:1.6 src/lib/csu/sparc64/Makefile:1.7
--- src/lib/csu/sparc64/Makefile:1.6 Fri May 19 19:11:12 2006
+++ src/lib/csu/sparc64/Makefile Mon Jul 4 21:54:18 2011
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/05/19 19:11:12 christos Exp $
+# $NetBSD: Makefile,v 1.7 2011/07/04 21:54:18 mrg Exp $
#Uncomment the next line to enable the new .init fallthru
CPPFLAGS+= -I${.CURDIR}/../sparc_elf
@@ -6,3 +6,9 @@
ELFSIZE=64
.include "${.CURDIR}/../common_elf/Makefile.inc"
+
+# XXX something is wrong with the -O2 crt0.o and the code in ___start
+# accesses data outside of the mapped space -> crash
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 45
+DBG+= -O1
+.endif