diff options
author | Jim Blandy <jimb@codesourcery.com> | 2005-03-15 23:25:59 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2005-03-15 23:25:59 +0000 |
commit | 51216631bc135875ab05fee0a078f64b823419e6 (patch) | |
tree | eb3529fdf50e930705f0e151c2584beaf9f362a9 /sim/mips/configure | |
parent | ca07ff34958fab15934ae3c835c04a0fb75edc93 (diff) | |
download | gdb-51216631bc135875ab05fee0a078f64b823419e6.zip gdb-51216631bc135875ab05fee0a078f64b823419e6.tar.gz gdb-51216631bc135875ab05fee0a078f64b823419e6.tar.bz2 |
sim/common/ChangeLog:
2005-02-28 Jim Blandy <jimb@redhat.com>
* aclocal.m4 (SIM_AC_OPTION_WARNINGS): Don't include
-Wuninitialized in the default list of build warnings if CFLAGS is
set, and doesn't include -O. (Using -Wuninitialized without
optimization produces a warning, which interferes with compilation
with -Werror.)
sim/ChangeLog:
2005-02-28 Jim Blandy <jimb@redhat.com>
* d10v/configure.ac, igen/configure.ac, m68hc11/configure.ac,
mips/configure.ac, mn10300/configure.ac, v850/configure.ac:
Regenerated, after change to common/aclocal.m4.
Diffstat (limited to 'sim/mips/configure')
-rwxr-xr-x | sim/mips/configure | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sim/mips/configure b/sim/mips/configure index 4ac0d0a..eb57461 100755 --- a/sim/mips/configure +++ b/sim/mips/configure @@ -7396,7 +7396,18 @@ fi; # NOTE: If you add to this list, remember to update # gdb/doc/gdbint.texinfo. build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ --Wformat -Wparentheses -Wpointer-arith -Wuninitialized" +-Wformat -Wparentheses -Wpointer-arith" +# GCC supports -Wuninitialized only with -O or -On, n != 0. +if test x${CFLAGS+set} = xset; then + case "${CFLAGS}" in + *"-O0"* ) ;; + *"-O"* ) + build_warnings="${build_warnings} -Wuninitialized" + ;; + esac +else + build_warnings="${build_warnings} -Wuninitialized" +fi # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |