This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Disable checking and -Werror on 3.4 release branch


This patch disables -Werror and internal checking on the GCC 3.4
branch -- unless you explicitly turn them on, of course.

Tested on i686-pc-linux-gnu by building the C compiler and staring at
the build logs and auto-host.h.

Installed on the GCC 3.4 branch.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2004-01-16  Mark Mitchell  <mark@codesourcery.com>

	* configure.ac: Do not do internal checking or -Werror by default.
	* configure: Regenerated.

Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.6
diff -c -5 -p -r2.6 configure.ac
*** configure.ac	15 Jan 2004 04:02:11 -0000	2.6
--- configure.ac	17 Jan 2004 03:53:00 -0000
*************** AC_SUBST(warn_cflags)
*** 321,331 ****
  
  # 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 x$enable_werror = xyes ; then
    WERROR=-Werror
  fi
  AC_SUBST(WERROR)
  
--- 321,331 ----
  
  # 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=no])
  if test x$enable_werror = xyes ; then
    WERROR=-Werror
  fi
  AC_SUBST(WERROR)
  
*************** AC_SUBST(WERROR)
*** 333,343 ****
  AC_ARG_ENABLE(checking,
  [  --enable-checking[=LIST]
  			  enable expensive run-time checks.  With LIST,
  			  enable only specific categories of checks.
  			  Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
! 			  default is misc,tree,gc,rtlflag],
  [ac_checking=
  ac_tree_checking=
  ac_rtl_checking=
  ac_rtlflag_checking=
  ac_gc_checking=
--- 333,343 ----
  AC_ARG_ENABLE(checking,
  [  --enable-checking[=LIST]
  			  enable expensive run-time checks.  With LIST,
  			  enable only specific categories of checks.
  			  Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
! 			  default is no checking],
  [ac_checking=
  ac_tree_checking=
  ac_rtl_checking=
  ac_rtlflag_checking=
  ac_gc_checking=
*************** no)	;;
*** 365,376 ****
  		esac
  	done
  	;;
  esac
  ], 
! # Enable some checks by default for development versions of GCC
! [ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;])
  nocommon_flag=""
  if test x$ac_checking != x ; then
    AC_DEFINE(ENABLE_CHECKING, 1,
  [Define if you want more run-time sanity checks.  This one gets a grab
     bag of miscellaneous but relatively cheap checks.])
--- 365,376 ----
  		esac
  	done
  	;;
  esac
  ], 
! # By default, disable all checks for release versions of GCC.
! [ac_checking=; ac_tree_checking=; ac_gc_checking=; ac_rtlflag_checking=;])
  nocommon_flag=""
  if test x$ac_checking != x ; then
    AC_DEFINE(ENABLE_CHECKING, 1,
  [Define if you want more run-time sanity checks.  This one gets a grab
     bag of miscellaneous but relatively cheap checks.])


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]