mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Adapt more places where binutils-2.17 has changed the format of the
linker warning massages.
This commit is contained in:
parent
7b28dfbbb3
commit
689ad0f31e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2016/09/24 01:01:38 bluhm Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2016/09/25 21:35:12 bluhm Exp $
|
||||
|
||||
C_MODULES?= strlcpy strlcat getcwd memcpy fread memcpy declare \
|
||||
sscanf vararray md builtins
|
||||
@ -36,16 +36,16 @@ c-${i}-${j}:
|
||||
. 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' | sed '/^\/tmp\//d' | diff -u - ${.CURDIR}/${i}-${j}.cpp${EXP}
|
||||
${TCXX} ${TCXXFLAGS} -o /dev/null ${i}-${j}.cpp 2>&1 | grep -v 'misused' | sed '/^\/tmp\//d;s/(\.text+0x[0-9a-f]*)//' | 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 2>&1 | sed '/^\/tmp\//d' >${i:C/^c-//g}.c${EXP}
|
||||
-${TCC} ${TCFLAGS} -o /dev/null ${i:C/^c-//g}.c 2>&1 | sed '/^\/tmp\//d;s/(\.text+0x[0-9a-f]*)//' >${i:C/^c-//g}.c${EXP}
|
||||
.endfor
|
||||
.for i in ${CPP_TARGETS}
|
||||
-${TCXX} ${TCXXFLAGS} -o /dev/null ${i:C/^cpp-//g}.cpp 2>&1 | sed '/^\/tmp\//d' >${i:C/^cpp-//g}.cpp${EXP}
|
||||
-${TCXX} ${TCXXFLAGS} -o /dev/null ${i:C/^cpp-//g}.cpp 2>&1 | sed '/^\/tmp\//d;s/(\.text+0x[0-9a-f]*)//' >${i:C/^cpp-//g}.cpp${EXP}
|
||||
.endfor
|
||||
|
||||
.PHONY: ${REGRESS_TARGETS} generate regress
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2013/12/28 03:19:02 martynas Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2016/09/25 21:35:12 bluhm 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 \
|
||||
@ -11,12 +11,12 @@ TCXXFLAGS= ${TCFLAGS}
|
||||
.for i in ${GCC_BUILTINS}
|
||||
REGRESS_TARGETS+= c-${i}
|
||||
c-${i}:
|
||||
${TCC} ${TCFLAGS} -o /dev/null ${i}.c 2>&1 | sed '/^\/tmp\//d' | diff -u - ${.CURDIR}/${i}.c.exp
|
||||
${TCC} ${TCFLAGS} -o /dev/null ${i}.c 2>&1 | sed '/^\/tmp\//d;s/(\.text+0x[0-9a-f]*)//' | 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 | sed '/^\/tmp\//d' >${i:C/^c-//g}.c.exp
|
||||
-${TCC} ${TCFLAGS} -o /dev/null ${i:C/^c-//g}.c 2>&1 | sed '/^\/tmp\//d;s/(\.text+0x[0-9a-f]*)//' >${i:C/^c-//g}.c.exp
|
||||
.endfor
|
||||
|
||||
.PHONY: ${REGRESS_TARGETS} generate regress
|
||||
|
@ -1 +1 @@
|
||||
: warning: sprintf() is often misused, please use snprintf()
|
||||
sprintf-1.c:: warning: warning: sprintf() is often misused, please use snprintf()
|
||||
|
@ -1 +1 @@
|
||||
: warning: sprintf() is often misused, please use snprintf()
|
||||
sprintf-2.c:: warning: warning: sprintf() is often misused, please use snprintf()
|
||||
|
@ -1 +1 @@
|
||||
: warning: sprintf() is often misused, please use snprintf()
|
||||
sprintf-3.c:: warning: warning: sprintf() is often misused, please use snprintf()
|
||||
|
@ -1 +1 @@
|
||||
: warning: stpcpy() is dangerous; do not use it
|
||||
stpcpy-1.c:: warning: warning: stpcpy() is dangerous; do not use it
|
||||
|
@ -1 +1 @@
|
||||
: warning: stpcpy() is dangerous; do not use it
|
||||
stpcpy-2.c:: warning: warning: stpcpy() is dangerous; do not use it
|
||||
|
@ -1 +1 @@
|
||||
: warning: strcat() is almost always misused, please use strlcat()
|
||||
strcat-1.c:: warning: warning: strcat() is almost always misused, please use strlcat()
|
||||
|
@ -1 +1 @@
|
||||
: warning: strcat() is almost always misused, please use strlcat()
|
||||
strcat-2.c:: warning: warning: strcat() is almost always misused, please use strlcat()
|
||||
|
@ -1 +1 @@
|
||||
: warning: strcpy() is almost always misused, please use strlcpy()
|
||||
strcpy-1.c:: warning: warning: strcpy() is almost always misused, please use strlcpy()
|
||||
|
@ -1 +1 @@
|
||||
: warning: strcpy() is almost always misused, please use strlcpy()
|
||||
strcpy-2.c:: warning: warning: strcpy() is almost always misused, please use strlcpy()
|
||||
|
@ -1 +1 @@
|
||||
: warning: vsprintf() is often misused, please use vsnprintf()
|
||||
vsprintf-1.c:: warning: warning: vsprintf() is often misused, please use vsnprintf()
|
||||
|
@ -1 +1 @@
|
||||
: warning: vsprintf() is often misused, please use vsnprintf()
|
||||
vsprintf-2.c:: warning: warning: vsprintf() is often misused, please use vsnprintf()
|
||||
|
@ -1 +1 @@
|
||||
: warning: vsprintf() is often misused, please use vsnprintf()
|
||||
vsprintf-3.c:: warning: warning: vsprintf() is often misused, please use vsnprintf()
|
||||
|
Loading…
Reference in New Issue
Block a user