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 | |
parent | ca07ff34958fab15934ae3c835c04a0fb75edc93 (diff) | |
download | binutils-51216631bc135875ab05fee0a078f64b823419e6.tar.gz binutils-51216631bc135875ab05fee0a078f64b823419e6.tar.bz2 binutils-51216631bc135875ab05fee0a078f64b823419e6.zip |
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')
-rw-r--r-- | sim/ChangeLog | 6 | ||||
-rw-r--r-- | sim/common/ChangeLog | 8 | ||||
-rw-r--r-- | sim/common/aclocal.m4 | 13 | ||||
-rwxr-xr-x | sim/d10v/configure | 13 | ||||
-rwxr-xr-x | sim/igen/configure | 13 | ||||
-rwxr-xr-x | sim/m68hc11/configure | 13 | ||||
-rwxr-xr-x | sim/mips/configure | 13 | ||||
-rwxr-xr-x | sim/mn10300/configure | 13 | ||||
-rwxr-xr-x | sim/v850/configure | 13 |
9 files changed, 98 insertions, 7 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog index 820f6b85ebd..61dfc15517d 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,9 @@ +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. + 2005-02-18 Corinna Vinschen <vinschen@redhat.com> * iq2000: New target subdirectory. diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index a22cc4f0c9a..a2ba15e560a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,11 @@ +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.) + 2005-02-21 Jim Blandy <jimb@redhat.com> * callback.c (os_fstat): Don't declare 't' unless it's used. diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4 index 07ae512b5c9..2f0d9919840 100644 --- a/sim/common/aclocal.m4 +++ b/sim/common/aclocal.m4 @@ -790,7 +790,18 @@ AC_DEFUN(SIM_AC_OPTION_WARNINGS, # 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 diff --git a/sim/d10v/configure b/sim/d10v/configure index 8c63839818b..261af45cb93 100755 --- a/sim/d10v/configure +++ b/sim/d10v/configure @@ -7033,7 +7033,18 @@ sim_link_links="${sim_link_links} targ-vals.def" # 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 diff --git a/sim/igen/configure b/sim/igen/configure index 139d10b844c..18d3f28a1b4 100755 --- a/sim/igen/configure +++ b/sim/igen/configure @@ -2343,7 +2343,18 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # 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 diff --git a/sim/m68hc11/configure b/sim/m68hc11/configure index 1a66de84e3c..a7792853dcc 100755 --- a/sim/m68hc11/configure +++ b/sim/m68hc11/configure @@ -7386,7 +7386,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 diff --git a/sim/mips/configure b/sim/mips/configure index 4ac0d0a7984..eb574619c91 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 diff --git a/sim/mn10300/configure b/sim/mn10300/configure index 30475afc5a7..b7f37777422 100755 --- a/sim/mn10300/configure +++ b/sim/mn10300/configure @@ -7392,7 +7392,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 diff --git a/sim/v850/configure b/sim/v850/configure index c63b3c66fe3..665ece9d4ca 100755 --- a/sim/v850/configure +++ b/sim/v850/configure @@ -7390,7 +7390,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 |