Source-Changes-HG archive

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

[src/trunk]: src/gnu/lib/crtstuff4 copy across a hack from the mips libc/mcou...



details:   https://anonhg.NetBSD.org/src/rev/2b257bedca15
branches:  trunk
changeset: 750113:2b257bedca15
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Dec 17 07:24:06 2009 +0000

description:
copy across a hack from the mips libc/mcount build.  self documenting:

+.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
+# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
+# and GCC configury passes -finhibit-size-directive which causes mips-gas
+# to barf.  Don't know what the real fix for this is...
+#
+# XXX should be COPTS, but that's too early
+CPUFLAGS+=-Wa,--no-warn

diffstat:

 gnu/lib/crtstuff4/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 2140780bca88 -r 2b257bedca15 gnu/lib/crtstuff4/Makefile
--- a/gnu/lib/crtstuff4/Makefile        Thu Dec 17 06:54:51 2009 +0000
+++ b/gnu/lib/crtstuff4/Makefile        Thu Dec 17 07:24:06 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2008/08/04 04:53:22 lukem Exp $
+#      $NetBSD: Makefile,v 1.4 2009/12/17 07:24:06 mrg Exp $
 
 REQUIRETOOLS=  yes
 NOLINT=                # defined
@@ -66,6 +66,15 @@
        ${CC} ${CPPFLAGS} ${GCFLAGS} ${CPUFLAGS} -c ${.IMPSRC} -o ${.TARGET}.o
        mv ${.TARGET}.o ${.TARGET}
 
+.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
+# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
+# and GCC configury passes -finhibit-size-directive which causes mips-gas
+# to barf.  Don't know what the real fix for this is...
+#
+# XXX should be COPTS, but that's too early
+CPUFLAGS+=-Wa,--no-warn
+.endif
+
 .else
 
 .include <bsd.prog.mk>                 # do nothing



Home | Main Index | Thread Index | Old Index