From patchwork Sun Jun 20 15:55:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 56266 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 441891007D1 for ; Mon, 21 Jun 2010 01:55:40 +1000 (EST) Received: (qmail 2619 invoked by alias); 20 Jun 2010 15:55:38 -0000 Received: (qmail 2611 invoked by uid 22791); 20 Jun 2010 15:55:38 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_20 X-Spam-Check-By: sourceware.org Received: from vexpert.dbai.tuwien.ac.at (HELO vexpert.dbai.tuwien.ac.at) (128.131.111.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Jun 2010 15:55:28 +0000 Received: from acrux.dbai.tuwien.ac.at (acrux.dbai.tuwien.ac.at [128.131.111.60]) by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id 5EE881E04F; Sun, 20 Jun 2010 17:55:23 +0200 (CEST) Received: by acrux.dbai.tuwien.ac.at (Postfix, from userid 1203) id 90B031604A; Sun, 20 Jun 2010 17:55:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by acrux.dbai.tuwien.ac.at (Postfix) with ESMTP id 7DCDF16048; Sun, 20 Jun 2010 17:55:26 +0200 (CEST) Date: Sun, 20 Jun 2010 17:55:26 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org cc: Loren James Rittle Subject: [4.4, FreeBSD] Enable check for __stack_chk_fail Message-ID: User-Agent: Alpine 1.99 (LSU 1142 2008-08-13) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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"]) ;;