[4.4,FreeBSD] Enable check for __stack_chk_fail

Message ID alpine.LSU.1.99.1006201715320.9343@acrux.dbai.tuwien.ac.at
State New
Headers show

Commit Message

Gerald Pfeifer June 20, 2010, 3:55 p.m.
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.


2010-06-20  Gerald Pfeifer  <gerald@pfeifer.com>

	Backport from mainline:
	2009-09-11  Loren J. Rittle  <ljrittle@acm.org>

	* 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.
-       *-*-darwin*)
+       *-*-darwin* | *-*-freebsd*)
            [echo "no __stack_chk_fail on this target"])