aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren J. Rittle <ljrittle@acm.org>2009-09-11 15:37:40 +0000
committerLoren J. Rittle <ljrittle@gcc.gnu.org>2009-09-11 15:37:40 +0000
commit61e1d511e100823268b33f4311e67d2c6911ec3c (patch)
treea3789c0e2e4e07856555b69c309d7e76debbec3c
parent8a47c6c41fed4fda85ec2dceaa34863686109f94 (diff)
downloadgcc-61e1d511e100823268b33f4311e67d2c6911ec3c.zip
gcc-61e1d511e100823268b33f4311e67d2c6911ec3c.tar.gz
gcc-61e1d511e100823268b33f4311e67d2c6911ec3c.tar.bz2
configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
2009-09-11 Loren J. Rittle <ljrittle@acm.org> * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail. * configure: Regenerate. From-SVN: r151638
-rw-r--r--gcc/ChangeLog3
-rwxr-xr-xgcc/configure2
-rw-r--r--gcc/configure.ac2
3 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5b43e8a..82f22ad 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -4,6 +4,9 @@
to match the system compiler's configuration at inflection point.
Add comment to remark a remaining difference with system compiler.
+ * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
+ * configure: Regenerate.
+
2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
From Jie Zhang <jie.zhang@analog.com>:
diff --git a/gcc/configure b/gcc/configure
index 3cfc903..2e9385e 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -24388,7 +24388,7 @@ else
# 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
diff --git a/gcc/configure.ac b/gcc/configure.ac
index b8ec90e..ca6e3c2 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3720,7 +3720,7 @@ AC_CACHE_CHECK(__stack_chk_fail in target C library,
# 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"])
;;