Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun3/conf don't use -msoft-float for GCC 4.5. -mso...



details:   https://anonhg.NetBSD.org/src/rev/84e1cb5f02a9
branches:  trunk
changeset: 767080:84e1cb5f02a9
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 08 09:34:51 2011 +0000

description:
don't use -msoft-float for GCC 4.5.  -msoft-float passes down -mno-float
to the assembler, which barfs, and i can't see any way to disable it just
for sun3/fpu.c.

diffstat:

 sys/arch/sun3/conf/Makefile.sun3 |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 460fe0f3ee62 -r 84e1cb5f02a9 sys/arch/sun3/conf/Makefile.sun3
--- a/sys/arch/sun3/conf/Makefile.sun3  Fri Jul 08 09:32:45 2011 +0000
+++ b/sys/arch/sun3/conf/Makefile.sun3  Fri Jul 08 09:34:51 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sun3,v 1.101 2011/01/21 15:59:09 joerg Exp $
+# $NetBSD: Makefile.sun3,v 1.102 2011/07/08 09:34:51 mrg Exp $
 
 # Makefile for NetBSD
 #
@@ -32,7 +32,10 @@
 ## (2) compile settings
 ##
 CPPFLAGS+=     -Dsun3
-CFLAGS+=       ${CMACHFLAGS} -msoft-float -fno-defer-pop
+CFLAGS+=       ${CMACHFLAGS} -fno-defer-pop
+.if defined(HAVE_GCC) ${HAVE_GCC} == 45
+CFLAGS+=       -msoft-float
+.endif
 AFLAGS+=       -x assembler-with-cpp
 
 ##



Home | Main Index | Thread Index | Old Index