-# $OpenBSD: Makefile,v 1.7 2013/12/28 02:14:32 martynas Exp $
+# $OpenBSD: Makefile,v 1.8 2013/12/28 03:19:02 martynas Exp $
-SUBDIR+= gcc libiberty
-
-.if defined(REGRESS_FULL)
-SUBDIR += gcc-bounds
-SUBDIR += gcc-builtins
-.endif
+SUBDIR+= gcc gcc-bounds gcc-builtins libiberty
install:
-# $OpenBSD: Makefile,v 1.13 2013/08/06 19:11:53 miod Exp $
+# $OpenBSD: Makefile,v 1.14 2013/12/28 03:19:02 martynas Exp $
C_MODULES?= strlcpy strlcat getcwd memcpy fread memcpy declare \
sscanf vararray md builtins
. for j in ${C_${i:U}}
C_TARGETS+= c-${i}-${j}
c-${i}-${j}:
- ${TCC} ${TCFLAGS} -o /dev/null ${i}-${j}.c 2>&1 | diff -u - ${.CURDIR}/${i}-${j}.c${EXP}
+ ${TCC} ${TCFLAGS} -o /dev/null ${i}-${j}.c 2>&1 | sed '/^\/tmp\//d' | diff -u - ${.CURDIR}/${i}-${j}.c${EXP}
. endfor
.endfor
. for j in ${CPP_${i:U}}
CPP_TARGETS+= cpp-${i}-${j}
cpp-${i}-${j}:
- ${TCXX} ${TCXXFLAGS} -o /dev/null ${i}-${j}.cpp 2>&1 | grep -v 'misused' | diff -u - ${.CURDIR}/${i}-${j}.cpp${EXP}
+ ${TCXX} ${TCXXFLAGS} -o /dev/null ${i}-${j}.cpp 2>&1 | grep -v 'misused' | sed '/^\/tmp\//d' | diff -u - ${.CURDIR}/${i}-${j}.cpp${EXP}
. endfor
.endfor
generate:
.for i in ${C_TARGETS}
- -${TCC} ${TCFLAGS} -o /dev/null ${i:C/^c-//g}.c >${i:C/^c-//g}.c${EXP} 2>&1
+ -${TCC} ${TCFLAGS} -o /dev/null ${i:C/^c-//g}.c 2>&1 | sed '/^\/tmp\//d' >${i:C/^c-//g}.c${EXP}
.endfor
.for i in ${CPP_TARGETS}
- -${TCXX} ${TCXXFLAGS} -o /dev/null ${i:C/^cpp-//g}.cpp >${i:C/^cpp-//g}.cpp${EXP} 2>&1
+ -${TCXX} ${TCXXFLAGS} -o /dev/null ${i:C/^cpp-//g}.cpp 2>&1 | sed '/^\/tmp\//d' >${i:C/^cpp-//g}.cpp${EXP}
.endfor
.PHONY: ${REGRESS_TARGETS} generate regress
getcwd-1.c: In function `main':
getcwd-1.c:5: warning: array size (10) is smaller than minimum required (1024)
+: warning: getwd() possibly used unsafely; consider using getcwd()
getcwd-1.c: In function 'main':
getcwd-1.c:5: warning: array size (10) is smaller than minimum required (1024)
+: warning: getwd() possibly used unsafely; consider using getcwd()
-# $OpenBSD: Makefile,v 1.1 2013/12/28 02:14:32 martynas Exp $
+# $OpenBSD: Makefile,v 1.2 2013/12/28 03:19:02 martynas Exp $
GCC_BUILTINS= sprintf-1 sprintf-2 sprintf-3 stpcpy-1 stpcpy-2 strcat-1 \
strcat-2 strcpy-1 strcpy-2 strncat-1 vsprintf-1 vsprintf-2 \
.for i in ${GCC_BUILTINS}
REGRESS_TARGETS+= c-${i}
c-${i}:
- ${TCC} ${TCFLAGS} -o /dev/null ${i}.c 2>&1 | cut -d: -f2- | diff -u - ${.CURDIR}/${i}.c.exp
+ ${TCC} ${TCFLAGS} -o /dev/null ${i}.c 2>&1 | sed '/^\/tmp\//d' | diff -u - ${.CURDIR}/${i}.c.exp
.endfor
generate:
.for i in ${REGRESS_TARGETS}
- -${TCC} ${TCFLAGS} -o /dev/null ${i:C/^c-//g}.c 2>&1 | cut -d: -f2- >${i:C/^c-//g}.c.exp
+ -${TCC} ${TCFLAGS} -o /dev/null ${i:C/^c-//g}.c 2>&1 | sed '/^\/tmp\//d' >${i:C/^c-//g}.c.exp
.endfor
.PHONY: ${REGRESS_TARGETS} generate regress
- In function `main':
- warning: sprintf() is often misused, please use snprintf()
+: warning: sprintf() is often misused, please use snprintf()
- In function `main':
- warning: sprintf() is often misused, please use snprintf()
+: warning: sprintf() is often misused, please use snprintf()
- In function `main':
- warning: sprintf() is often misused, please use snprintf()
+: warning: sprintf() is often misused, please use snprintf()
- In function `main':
- warning: stpcpy() is dangerous GNU crap; don't use it
+: warning: stpcpy() is dangerous GNU crap; don't use it
- In function `main':
- warning: stpcpy() is dangerous GNU crap; don't use it
+: warning: stpcpy() is dangerous GNU crap; don't use it
- In function `main':
- warning: strcat() is almost always misused, please use strlcat()
+: warning: strcat() is almost always misused, please use strlcat()
- In function `main':
- warning: strcat() is almost always misused, please use strlcat()
+: warning: strcat() is almost always misused, please use strlcat()
- In function `main':
- warning: strcpy() is almost always misused, please use strlcpy()
+: warning: strcpy() is almost always misused, please use strlcpy()
- In function `main':
- warning: strcpy() is almost always misused, please use strlcpy()
+: warning: strcpy() is almost always misused, please use strlcpy()
- In function `test_vsprintf':
- warning: vsprintf() is often misused, please use vsnprintf()
+: warning: vsprintf() is often misused, please use vsnprintf()
- In function `test_vsprintf':
- warning: vsprintf() is often misused, please use vsnprintf()
+: warning: vsprintf() is often misused, please use vsnprintf()
- In function `test_vsprintf':
- warning: vsprintf() is often misused, please use vsnprintf()
+: warning: vsprintf() is often misused, please use vsnprintf()