Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/conf Restrict float format hacks to gcc 4.8



details:   https://anonhg.NetBSD.org/src/rev/1cc6b19013b4
branches:  trunk
changeset: 344426:1cc6b19013b4
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 28 08:10:57 2016 +0000

description:
Restrict float format hacks to gcc 4.8

diffstat:

 sys/arch/mips/conf/Makefile.mips |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 57f03b509d23 -r 1cc6b19013b4 sys/arch/mips/conf/Makefile.mips
--- a/sys/arch/mips/conf/Makefile.mips  Mon Mar 28 04:38:04 2016 +0000
+++ b/sys/arch/mips/conf/Makefile.mips  Mon Mar 28 08:10:57 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.mips,v 1.63 2016/02/18 20:50:44 macallan Exp $
+#      $NetBSD: Makefile.mips,v 1.64 2016/03/28 08:10:57 martin Exp $
 
 # Makefile for NetBSD
 #
@@ -47,6 +47,7 @@
 DEFGP?=                -G 0
 GP?=           ${DEFGP}
 
+.if ${ACTIVE_CC} == "gcc" && ${HAVE_GCC} == "48"
 # XXX
 # gcc does not pass floating point options to the assembler
 # by default, because it is afraid that the stricter tests
@@ -57,6 +58,7 @@
 
 CFLAGS+=       -Wa,-msoft-float
 COPTS.mips_fpu.c+=     -Wa,-mhard-float
+.endif
 
 CFLAGS+=       ${GP} -mno-abicalls -msoft-float -ffixed-24
 .if defined(LP64) && ${LP64} == "yes"



Home | Main Index | Thread Index | Old Index