From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21842 invoked by alias); 3 Feb 2014 09:05:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 21832 invoked by uid 89); 3 Feb 2014 09:05:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Feb 2014 09:05:28 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s1395RPi010878 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 3 Feb 2014 04:05:27 -0500 Received: from oldenburg.str.redhat.com (oldenburg.str.redhat.com [10.33.200.60]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s1395Ouo010570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 3 Feb 2014 04:05:25 -0500 Message-ID: <52EF5BD4.9000701@redhat.com> Date: Mon, 03 Feb 2014 09:05:00 -0000 From: Florian Weimer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Jakub Jelinek CC: GCC Patches , shenhan@google.com Subject: [PATCH Ping] Extend -fstack-protector-strong to cover calls with return slot References: <52C6B807.1070203@redhat.com> <20140103185715.GO892@tucnak.redhat.com> <52C72F05.2060901@redhat.com> <52CBF834.3040004@redhat.com> <20140107130748.GP892@tucnak.redhat.com> <52CC00A8.7070203@redhat.com> <20140107133723.GR892@tucnak.redhat.com> <52CD6755.5060003@redhat.com> <52D9055F.9030403@redhat.com> In-Reply-To: <52D9055F.9030403@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00051.txt.bz2 On 01/17/2014 11:26 AM, Florian Weimer wrote: > On 01/08/2014 03:57 PM, Florian Weimer wrote: > >> What about the attached version? It still does not exactly match your >> original suggestion because gimple_call_lhs (stmt) can be NULL_TREE if >> the result is ignored and this case needs instrumentation, as you >> explained, so I use the function return type in the aggregate_value_p >> check. >> >> Testing is still under way, but looks good so far. I'm bootstrapping >> with BOOT_CFLAGS="-O2 -g -fstack-protector-strong" with Ada enabled, for >> additional coverage. > > Testing passed without new regressions. Is this okay for trunk? Ping? Thanks. -- Florian Weimer / Red Hat Product Security Team