Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/sparc64 XXX: for now, build sparc64 csu with -O1 if ...



details:   https://anonhg.NetBSD.org/src/rev/40fe0b091438
branches:  trunk
changeset: 766949:40fe0b091438
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jul 04 21:54:18 2011 +0000

description:
XXX: for now, build sparc64 csu with -O1 if using GCC 4.5.

diffstat:

 lib/csu/sparc64/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 925df96903ae -r 40fe0b091438 lib/csu/sparc64/Makefile
--- a/lib/csu/sparc64/Makefile  Mon Jul 04 21:20:27 2011 +0000
+++ b/lib/csu/sparc64/Makefile  Mon Jul 04 21:54:18 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index