From f6e2a81ff9e0e99f5eabebaec545d5efcd526dc4 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 2 Sep 2006 21:27:41 +0000 Subject: [PATCH] Add -fno-reorder-blocks for gcc4, to avoid duplicate label definition by RAS_END() - untill we find some better solution. --- regress/sys/kern/ras/ras3/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/regress/sys/kern/ras/ras3/Makefile b/regress/sys/kern/ras/ras3/Makefile index 60b0ca398ac3..19a8aff2c1f2 100644 --- a/regress/sys/kern/ras/ras3/Makefile +++ b/regress/sys/kern/ras/ras3/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.2 2002/09/18 05:41:54 lukem Exp $ +# $NetBSD: Makefile,v 1.3 2006/09/02 21:27:41 martin Exp $ NOMAN= #defined - PROG= ras3 WARNS= 2 @@ -13,3 +12,7 @@ regress: fi .include + +.if ${HAVE_GCC} == 4 +CFLAGS+= -fno-reorder-blocks +.endif