summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2010-05-10 18:20:32 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2010-05-10 18:20:32 +0000
commit3d048d0ab0d9212a257df4643785a7fc4500f65a (patch)
treeee69a2ee7a0126c6826e618641e3694b28356554 /regress/gnu/egcs
parent74ec6f5d77854dfd44aaf3ee3e8836f9a15c38ff (diff)
Switch to using COMPILER_VERSION instead of USE_GCC3, allows for more flexible
complier picking, eg supporting gcc2, gcc3, and gcc4. based on diff by Marco, with fixes from espie@. ok espie@ general mumbling of approval of others.
Diffstat (limited to 'regress/gnu/egcs')
-rw-r--r--regress/gnu/egcs/gcc-bounds/Makefile6
-rw-r--r--regress/gnu/egcs/gcc/Makefile6
-rw-r--r--regress/gnu/egcs/libf2c/Makefile8
3 files changed, 12 insertions, 8 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/Makefile b/regress/gnu/egcs/gcc-bounds/Makefile
index 1302bca8ae1..d0026aa8ddf 100644
--- a/regress/gnu/egcs/gcc-bounds/Makefile
+++ b/regress/gnu/egcs/gcc-bounds/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.10 2006/07/11 11:59:53 avsm Exp $
+# $OpenBSD: Makefile,v 1.11 2010/05/10 18:20:31 drahn Exp $
C_MODULES?= strlcpy strlcat getcwd memcpy fread memcpy declare \
sscanf vararray md builtins
@@ -53,8 +53,10 @@ generate:
NOOBJ= Yes
.include <bsd.regress.mk>
-.if ${USE_GCC3:L:Myes}
+.if ${COMPILER_VERSION:L} == "gcc3"
EXP= .exp.gcc3
+.elif ${COMPILER_VERSION:L} == "gcc4"
+EXP= .exp.gcc4
.else
EXP= .exp
.endif
diff --git a/regress/gnu/egcs/gcc/Makefile b/regress/gnu/egcs/gcc/Makefile
index 0dd2a2bd569..9c4f3f68a7e 100644
--- a/regress/gnu/egcs/gcc/Makefile
+++ b/regress/gnu/egcs/gcc/Makefile
@@ -1,12 +1,14 @@
-# $OpenBSD: Makefile,v 1.6 2006/02/11 23:54:34 david Exp $
+# $OpenBSD: Makefile,v 1.7 2010/05/10 18:20:31 drahn Exp $
.include <bsd.own.mk>
NOMAN=
NOPROG=
-.if ${USE_GCC3:L:Myes}
+.if ${COMPILER_VERSION:L} == "gcc3"
TESTDIR=${BSDSRCDIR}/gnu/usr.bin/gcc
+.elif ${COMPILER_VERSION:L} == "gcc4"
+TESTDIR=${BSDSRCDIR}/gnu/usr.bin/cc
.else
TESTDIR=${BSDSRCDIR}/gnu/egcs/gcc
.endif
diff --git a/regress/gnu/egcs/libf2c/Makefile b/regress/gnu/egcs/libf2c/Makefile
index 5a8797244c4..db1e423bdc8 100644
--- a/regress/gnu/egcs/libf2c/Makefile
+++ b/regress/gnu/egcs/libf2c/Makefile
@@ -1,14 +1,14 @@
-# $OpenBSD: Makefile,v 1.6 2006/02/11 23:54:34 david Exp $
+# $OpenBSD: Makefile,v 1.7 2010/05/10 18:20:31 drahn Exp $
.include <bsd.own.mk>
NOMAN=
NOPROG=
-.if ${USE_GCC3:L:Myes}
+.if ${COMPILER_VERSION:L} == "gcc3"
TESTDIR=${BSDSRCDIR}/gnu/lib/libf2c
TEST2DIR=${BSDSRCDIR}/gnu/usr.bin/gcc
-.else
+.elif ${COMPILER_VERSION:L} == "gcc2"
TESTDIR=${BSDSRCDIR}/gnu/egcs/libf2c
TEST2DIR=${BSDSRCDIR}/gnu/egcs/gcc
.endif
@@ -19,7 +19,7 @@ TEST4DIR=${TEST2DIR}/
REGRESS_TARGETS=do-libf2c
-.if !defined(DO_DEJATESTS)
+.if !defined(DO_DEJATESTS) && defined(TESTDIR)
REGRESS_SKIP_TARGETS=do-libf2c
.endif