2007-01-04 Paolo Bonzini <bonzini@gnu.org>
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 4 Jan 2007 09:12:28 +0000 (09:12 +0000)
committerPaolo Bonzini <bonzini@gnu.org>
Thu, 4 Jan 2007 09:12:28 +0000 (09:12 +0000)
* configure.in: Use DEV-PHASE to detect the default for --enable-werror.
* configure: Regenerate.

ChangeLog
configure
configure.in

index 1f5cf47d7e8078adc72bb92959771e2b1463e590..94fd2b305089d7c8fdbf7624039d1947ac732b49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-04  Paolo Bonzini  <bonzini@gnu.org>
+
+       * configure.in: Use DEV-PHASE to detect the default for --enable-werror.
+       * configure: Regenerate.
+
 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * Makefile.def (target_modules): Add libgcc.
index 2e3af68a72c8ae4cdcfd5d53e77540a90dc6ae75..9a970a469ff25867b84409c24bb7403501110134 100755 (executable)
--- a/configure
+++ b/configure
@@ -7439,13 +7439,16 @@ fi
 
 
 # Enable -Werror in bootstrap stage2 and later.
-# Change the default to "no" on release branches.
 # Check whether --enable-werror or --disable-werror was given.
 if test "${enable_werror+set}" = set; then
   enableval="$enable_werror"
   :
 else
+  if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
   enable_werror=yes
+else
+  enable_werror=no
+fi
 fi
 
 case ${enable_werror} in
index 6c7189fce92637a6787eacf55cc82cf11231f8af..a80846703cebbda5e82fa0ca2c0cb670a6988225 100644 (file)
@@ -2488,10 +2488,13 @@ fi])
 AC_SUBST(stage1_checking)
 
 # Enable -Werror in bootstrap stage2 and later.
-# Change the default to "no" on release branches.
 AC_ARG_ENABLE(werror,
 [  --enable-werror         enable -Werror in bootstrap stage2 and later], [],
-[enable_werror=yes])
+[if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
+  enable_werror=yes
+else
+  enable_werror=no
+fi])
 case ${enable_werror} in
   yes) stage2_werror_flag="--enable-werror-always" ;;
   *) stage2_werror_flag="" ;;