Index: toolchain.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v retrieving revision 1.434 diff -u -r1.434 toolchain.eclass --- toolchain.eclass 5 Jul 2010 22:25:09 -0000 1.434 +++ toolchain.eclass 21 Jul 2010 17:23:38 -0000 @@ -1166,6 +1166,14 @@ if tc_version_is_at_least "4.4" ; then confgcc="${confgcc} --with-python-dir=${DATAPATH/$PREFIX/}/python" fi + + # For newer versions of gcc, use the default ("release"), because no + # one (even upstream apparently) tests with it disabled. #317217 + if tc_version_is_at_least 4 || [[ -n ${GCC_CHECKS_LIST} ]] ; then + confgcc="${confgcc} --enable-checking=${GCC_CHECKS_LIST:-release}" + else + confgcc="${confgcc} --disable-checking" + fi fi # GTK+ is preferred over xlib in 3.4.x (xlib is unmaintained @@ -1318,7 +1326,6 @@ # reasonably sane globals (hopefully) confgcc="${confgcc} \ --with-system-zlib \ - --disable-checking \ --disable-werror \ --enable-secureplt"