Module Name:    src
Committed By:   martin
Date:           Mon Mar 28 08:10:57 UTC 2016

Modified Files:
        src/sys/arch/mips/conf: Makefile.mips

Log Message:
Restrict float format hacks to gcc 4.8


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/mips/conf/Makefile.mips

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/conf/Makefile.mips
diff -u src/sys/arch/mips/conf/Makefile.mips:1.63 src/sys/arch/mips/conf/Makefile.mips:1.64
--- src/sys/arch/mips/conf/Makefile.mips:1.63	Thu Feb 18 20:50:44 2016
+++ src/sys/arch/mips/conf/Makefile.mips	Mon Mar 28 08:10:57 2016
@@ -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 @@ CPPFLAGS+=	-D${MACHINE}
 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 @@ GP?=		${DEFGP}
 
 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"

Reply via email to