Module Name:    src
Committed By:   chs
Date:           Tue Oct  4 04:04:15 UTC 2011

Modified Files:
        src/sys/arch/amiga/stand/bootblock/boot: Makefile

Log Message:
build cread.c with -O1 to work around a gcc 4.5 bug.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/amiga/stand/bootblock/boot/Makefile

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/amiga/stand/bootblock/boot/Makefile
diff -u src/sys/arch/amiga/stand/bootblock/boot/Makefile:1.46 src/sys/arch/amiga/stand/bootblock/boot/Makefile:1.47
--- src/sys/arch/amiga/stand/bootblock/boot/Makefile:1.46	Tue Jul 12 03:09:03 2011
+++ src/sys/arch/amiga/stand/bootblock/boot/Makefile	Tue Oct  4 04:04:15 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.46 2011/07/12 03:09:03 mrg Exp $
+#	$NetBSD: Makefile,v 1.47 2011/10/04 04:04:15 chs Exp $
 
 .include <bsd.own.mk>
 .include <bsd.sys.mk>		# for HOST_SH
@@ -88,8 +88,11 @@ CFLAGS= -ffreestanding ${COPTIM} ${INCPA
 CFLAGS+= -Werror
 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
 
+# XXX work around a gcc 4.5 bug
+COPTS.cread.c = -O1
+
 .c.o:
-	${CC} ${CFLAGS} -S $< -o $*.s
+	${CC} ${CFLAGS} ${COPTS.${.IMPSRC:T}} -S $< -o $*.s
 	${TXLT} < $*.s | ${AS} ${AFLAGS} -o $@
 	rm $*.s
 

Reply via email to