Remove ``-W -Wall'' from top-level Makefile/configure.
Add ``-W -Wall'' to sub-directories bfd, binutils, gas gprof, ld and opcodes by the addition of WARN_CFLAGS to Makefile.am and configury to set it. Add configure option --enable-build-warnings. Re-generate all and sundry using auto*-000227.
This commit is contained in:
parent
7f363152c5
commit
da7185af44
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Apr 7 18:10:29 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* configure (warn_cflags): Delete.
|
||||||
|
|
||||||
2000-03-30 Christopher Faylor <cgf@cygnus.com>
|
2000-03-30 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* Makefile.in (CC_FOR_TARGET): Add new winsup directory
|
* Makefile.in (CC_FOR_TARGET): Add new winsup directory
|
||||||
|
|
|
@ -902,9 +902,6 @@ do
|
||||||
test -n "$DEFAULT_LEX" && break
|
test -n "$DEFAULT_LEX" && break
|
||||||
done
|
done
|
||||||
|
|
||||||
# BINUTILS LOCAL: This is included in the default CFLAGS when using gcc.
|
|
||||||
warn_cflags="-W -Wall"
|
|
||||||
|
|
||||||
if [ "${build}" != "${host}" ]; then
|
if [ "${build}" != "${host}" ]; then
|
||||||
# If we are doing a Canadian Cross, in which the host and build systems
|
# If we are doing a Canadian Cross, in which the host and build systems
|
||||||
# are not the same, we set reasonable default values for the tools.
|
# are not the same, we set reasonable default values for the tools.
|
||||||
|
@ -938,7 +935,7 @@ t loop
|
||||||
AS_FOR_TARGET=${AS_FOR_TARGET-${target_alias}-as}
|
AS_FOR_TARGET=${AS_FOR_TARGET-${target_alias}-as}
|
||||||
BISON=${BISON-bison}
|
BISON=${BISON-bison}
|
||||||
CC=${CC-${host_alias}-gcc}
|
CC=${CC-${host_alias}-gcc}
|
||||||
CFLAGS=${CFLAGS-"-g -O2 ${warn_cflags}"}
|
CFLAGS=${CFLAGS-"-g -O2"}
|
||||||
CXX=${CXX-${host_alias}-c++}
|
CXX=${CXX-${host_alias}-c++}
|
||||||
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
||||||
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
|
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
|
||||||
|
@ -1018,10 +1015,10 @@ else
|
||||||
CC="gcc"
|
CC="gcc"
|
||||||
echo 'void f(){}' > conftest.c
|
echo 'void f(){}' > conftest.c
|
||||||
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
|
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
|
||||||
CFLAGS=${CFLAGS-"-g -O2 ${warn_cflags}"}
|
CFLAGS=${CFLAGS-"-g -O2"}
|
||||||
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
||||||
else
|
else
|
||||||
CFLAGS=${CFLAGS-"-O2 ${warn_cflags}"}
|
CFLAGS=${CFLAGS-"-O2"}
|
||||||
CXXFLAGS=${CXXFLAGS-"-O2"}
|
CXXFLAGS=${CXXFLAGS-"-O2"}
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
|
@ -1038,10 +1035,10 @@ else
|
||||||
*gcc)
|
*gcc)
|
||||||
echo 'void f(){}' > conftest.c
|
echo 'void f(){}' > conftest.c
|
||||||
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
|
if test -z "`${CC} -g -c conftest.c 2>&1`"; then
|
||||||
CFLAGS=${CFLAGS-"-g -O2 ${warn_cflags}"}
|
CFLAGS=${CFLAGS-"-g -O2"}
|
||||||
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
CXXFLAGS=${CXXFLAGS-"-g -O2"}
|
||||||
else
|
else
|
||||||
CFLAGS=${CFLAGS-"-O2 ${warn_cflags}"}
|
CFLAGS=${CFLAGS-"-O2"}
|
||||||
CXXFLAGS=${CXXFLAGS-"-O2"}
|
CXXFLAGS=${CXXFLAGS-"-O2"}
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
|
|
Loading…
Reference in New Issue