sim/common/ChangeLog:
authorJim Blandy <jimb@codesourcery.com>
Tue, 15 Mar 2005 23:25:59 +0000 (23:25 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 15 Mar 2005 23:25:59 +0000 (23:25 +0000)
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.

sim/ChangeLog
sim/common/ChangeLog
sim/common/aclocal.m4
sim/d10v/configure
sim/igen/configure
sim/m68hc11/configure
sim/mips/configure
sim/mn10300/configure
sim/v850/configure

index 820f6b85ebd81af1863f23ec22500b4520fc2f82..61dfc15517d1ff11c83eb7abee9241a79592a129 100644 (file)
@@ -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.
index a22cc4f0c9aab0c624d29a7f0d11aaf745f39e64..a2ba15e560aa8c8edc6155542c61d3bc2ac4cdc9 100644 (file)
@@ -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.
index 07ae512b5c967b37faaef59b1ac02104016ef1a6..2f0d99198407b0f4670d741f8c3d6508a48a2b79 100644 (file)
@@ -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
index 8c63839818b464e38ba5cbef4ef1b53fabb46879..261af45cb933280456424b5e150c705e6b225b8c 100755 (executable)
@@ -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
index 139d10b844cdd4e659ef1616504bedeb707e13ff..18d3f28a1b4603c32bea6ad1237df09722d4055e 100755 (executable)
@@ -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
index 1a66de84e3cba68257a60dd16045ac7054092ee9..a7792853dccda2206ec24652e1476b6def9251a4 100755 (executable)
@@ -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
index 4ac0d0a798462ee2e5a39ba022f18a634ffe53c7..eb574619c91889bf0898b1845b6156ba8e34692d 100755 (executable)
@@ -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
index 30475afc5a7cd9b8148d00e66e2097e6e6708739..b7f37777422037aeb799cbc425d05910ad255559 100755 (executable)
@@ -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
index c63b3c66fe3ec5b66308e6570b22a63f0c4953d6..665ece9d4cab014839d38a5a6522462d8d4bc305 100755 (executable)
@@ -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