This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Enable check for __stack_chk_fail on *-*-freebsd*
- From: Loren James Rittle <rittle at latour dot labs dot mot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Sep 2009 10:38:43 -0500 (CDT)
- Subject: PATCH: Enable check for __stack_chk_fail on *-*-freebsd*
- Reply-to: rittle at labs dot mot dot com
This mainline-commited patch enables the check for __stack_chk_fail on
*-*-freebsd* to match the configuration of the system compiler.
Bootstrapped -r151621 on i386-unknown-freebsd7.2.
Regards,
Loren
2009-09-11 Loren J. Rittle <ljrittle@acm.org>
* configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
* configure: Regenerate.
Index: gcc/configure.ac
===================================================================
--- gcc/configure.ac (revision 151635)
+++ gcc/configure.ac (working copy)
@@ -3720,7 +3720,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"])
;;
Index: gcc/configure
===================================================================
--- gcc/configure (revision 151635)
+++ gcc/configure (working copy)
@@ -24388,7 +24388,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_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
gcc_cv_libc_provides_ssp=yes