Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/stand/bootblock/boot No need to use annoying ...



details:   https://anonhg.NetBSD.org/src/rev/cc22509bc02d
branches:  trunk
changeset: 328814:cc22509bc02d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Apr 19 00:55:37 2014 +0000

description:
No need to use annoying HAVE_GCC to handle gcc48 m68k behavior chnages.

diffstat:

 sys/arch/amiga/stand/bootblock/boot/Makefile |  13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diffs (29 lines):

diff -r 51e35515a65c -r cc22509bc02d sys/arch/amiga/stand/bootblock/boot/Makefile
--- a/sys/arch/amiga/stand/bootblock/boot/Makefile      Sat Apr 19 00:33:24 2014 +0000
+++ b/sys/arch/amiga/stand/bootblock/boot/Makefile      Sat Apr 19 00:55:37 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.51 2014/04/19 00:04:12 christos Exp $
+#      $NetBSD: Makefile,v 1.52 2014/04/19 00:55:37 tsutsui Exp $
 
 .include <bsd.own.mk>
 .include <bsd.sys.mk>          # for HOST_SH
@@ -81,16 +81,11 @@
 INCPATH += -I${.CURDIR}/../../.. -I${.OBJDIR}
 INCPATH += -I${.CURDIR}/../elf2bb
 
-.if defined(HAVE_GCC) && ${HAVE_GCC} >= 48
-AFLAGS += -mcpu=68030 -l
-CAFLAGS += -Wa,-l -Wa,-mcpu=68030 ${INCPATH}
-.else
-AFLAGS += -m68030 -l
-CAFLAGS += -Wa,-l -Wa,-m68030 ${INCPATH}
-.endif
+AFLAGS += -march=68030 -mcpu=68030 -l
+CAFLAGS += -Wa,-l -Wa,-march=68030 -Wa,-mcpu=68030 ${INCPATH}
 
 COPTIM= -Os -fomit-frame-pointer -fcse-follow-jumps -fcse-skip-blocks
-COPTIM+= -m68060 ${CAFLAGS} -fno-unwind-tables
+COPTIM+= -Wa,-l -m68060 -Wa,-march=68030 -Wa,-mcpu=68030 -fno-unwind-tables
 CFLAGS= -ffreestanding ${COPTIM} ${INCPATH} ${DEFS}
 CFLAGS+= -Werror
 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith



Home | Main Index | Thread Index | Old Index