diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-05-19 13:31:01 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-05-19 13:31:01 +0000 |
commit | 14b6abc7056e00418a76269739c44d9fce09220b (patch) | |
tree | e448a9eb3c843b0dbe0bff7da9740e1dd8b00ae2 | |
parent | 0fa326f540e9c8a591b0a1b7a9380b3e63ef33a0 (diff) |
Enable by default -Werror just for bootstrap-debug.mk and default build.
2017-05-19 Martin Liska <mliska@suse.cz>
* configure.ac: Add --enable-werror-always just for
bootstrap-debug (or none build config) and do not add it
when we are on a release branch.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248276 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | configure | 16 | ||||
-rw-r--r-- | configure.ac | 17 |
3 files changed, 28 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog index d9858d99ebf..b75693b1ed4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-05-19 Martin Liska <mliska@suse.cz> + + * configure.ac: Add --enable-werror-always just for + bootstrap-debug (or none build config) and do not add it + when we are on a release branch. + * configure: Regenerated. + 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com> * MAINTAINERS: Add self to Write After Approval diff --git a/configure b/configure index 32a38633ad8..2c2fe644cfa 100755 --- a/configure +++ b/configure @@ -14587,12 +14587,6 @@ fi # Check whether --enable-werror was given. if test "${enable_werror+set}" = set; then : enableval=$enable_werror; -else - if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then - enable_werror=yes -else - enable_werror=no -fi fi case ${enable_werror} in @@ -14600,6 +14594,16 @@ case ${enable_werror} in *) stage2_werror_flag="" ;; esac +if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then + case $BUILD_CONFIG in + bootstrap-debug) + stage2_werror_flag="--enable-werror-always" ;; + "") + stage2_werror_flag="--enable-werror-always" ;; + esac +fi + + # Enable --enable-host-shared. # Check whether --enable-host-shared was given. diff --git a/configure.ac b/configure.ac index 12377499295..865dd543fa3 100644 --- a/configure.ac +++ b/configure.ac @@ -3461,16 +3461,21 @@ AC_SUBST(stage1_checking) # Enable -Werror in bootstrap stage2 and later. AC_ARG_ENABLE(werror, [AS_HELP_STRING([--enable-werror], - [enable -Werror in bootstrap stage2 and later])], [], -[if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then - enable_werror=yes -else - enable_werror=no -fi]) + [enable -Werror in bootstrap stage2 and later])], [], []) case ${enable_werror} in yes) stage2_werror_flag="--enable-werror-always" ;; *) stage2_werror_flag="" ;; esac + +if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then + case $BUILD_CONFIG in + bootstrap-debug) + stage2_werror_flag="--enable-werror-always" ;; + "") + stage2_werror_flag="--enable-werror-always" ;; + esac +fi + AC_SUBST(stage2_werror_flag) # Enable --enable-host-shared. |