From patchwork Sun Jun 20 15:55:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4.4,FreeBSD] Enable check for __stack_chk_fail Date: Sun, 20 Jun 2010 05:55:26 -0000 From: Gerald Pfeifer X-Patchwork-Id: 56266 Message-Id: To: gcc-patches@gcc.gnu.org Cc: Loren James Rittle This is a backport of a change Loren made to sync FSF GCC with some local changes FreeBSD has done and, sadly, not fed back upstream. Without this change, GCC 4.4 regresses versus the GCC 4.2-based system compiler. Tested on i386-unknown-freebsd9.0. The number of unsupported "gcc" tests decreased by 4, the number of expected passes increased by 10. ( http://gcc.gnu.org/ml/gcc-testresults/2010-06/msg02054.html ) Installed based on prior approval by Loren. Gerald 2010-06-20 Gerald Pfeifer Backport from mainline: 2009-09-11 Loren J. Rittle * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail. * configure: Regenerate. Index: configure.ac =================================================================== --- configure.ac (revision 161046) +++ configure.ac (revision 161047) @@ -3669,7 +3669,7 @@ # simply assert that glibc does provide this, which is true for all # realistically usable GNU/Hurd configurations. gcc_cv_libc_provides_ssp=yes;; - *-*-darwin*) + *-*-darwin* | *-*-freebsd*) AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes], [echo "no __stack_chk_fail on this target"]) ;;