From patchwork Sat Nov 7 12:02:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernhard Reutner-Fischer X-Patchwork-Id: 541272 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7D1C01402CC for ; Sat, 7 Nov 2015 23:03:06 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=WTGljRDJ; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :in-reply-to:references:mime-version:content-transfer-encoding :content-type:subject:from:date:to:cc:message-id; q=dns; s= default; b=EQIDMaT0sm66kGn/RMV1FRcG8IdYILOAm/xISdV6nglaOenFAGW6Z aBi4Qu5w4poxz9ptfz1xDGlhozf+3E7/6nsQUwl4LFB1MdNA6++Qv4FnNhYhZPOT ZUJ9au6hE5eD9S/xdapDKfBSMNPLiDUmbUrR8gKC9rUKspNb/C+U3Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :in-reply-to:references:mime-version:content-transfer-encoding :content-type:subject:from:date:to:cc:message-id; s=default; bh= BksiZZae308/hces4N1L2PZLm38=; b=WTGljRDJh3tSOoSOeCdKKxkHXX+LDdi1 xksa4VJ51gFhx0MOssuQaq4EpUvDhrZnVEiArk3e/S8Ge4OabzURfmD/eg1tT6zp 3MIVTOY4iIR3YLO8FfsfuksfbMt5qTnMddL9P6JJ8sspUPt9/bkTHJl/bkcE4ydU v+I1AV0D004= Received: (qmail 91888 invoked by alias); 7 Nov 2015 12:02:59 -0000 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 Received: (qmail 91875 invoked by uid 89); 7 Nov 2015 12:02:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50, FREEMAIL_FROM, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f54.google.com Received: from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 07 Nov 2015 12:02:57 +0000 Received: by wmnn186 with SMTP id n186so61560212wmn.1 for ; Sat, 07 Nov 2015 04:02:54 -0800 (PST) X-Received: by 10.28.19.65 with SMTP id 62mr14999254wmt.35.1446897774765; Sat, 07 Nov 2015 04:02:54 -0800 (PST) Received: from android-5344fe5e44c2fa60.weghof (212-124-154-36.adsl.highway.telekom.at. [212.124.154.36]) by smtp.gmail.com with ESMTPSA id u126sm3683793wmd.3.2015.11.07.04.02.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 Nov 2015 04:02:53 -0800 (PST) User-Agent: K-9 Mail for Android In-Reply-To: <563CD500.7040304@t-online.de> References: <563BE9A7.30803@yahoo.com> <563C8748.3040901@redhat.com> <563CB9F4.7020609@redhat.com> <563CD500.7040304@t-online.de> MIME-Version: 1.0 Subject: Re: improved RTL-level if conversion using scratchpads [half-hammock edition] From: Bernhard Reutner-Fischer Date: Sat, 07 Nov 2015 13:02:39 +0100 To: Bernd Schmidt , Sebastian Pop , Bernd Schmidt CC: Abe , "gcc-patches@gcc.gnu.org" , Kyrill Tkachov Message-ID: <76AD3AB2-2DAC-432B-8315-CCFB0BCB0883@gmail.com> X-IsSubscribed: yes On November 6, 2015 5:27:44 PM GMT+01:00, Bernd Schmidt wrote: >On 11/06/2015 04:52 PM, Sebastian Pop wrote: > >>> opinion). If you want a half-finished redzone allocator, I can send >you a >>> patch. >> >> Yes please. Let's get it work. > >Here you go. This is incomplete and does not compile, but it shows the >direction I have in mind and isn't too far off. I had a similar patch Something we (should?) warn about? Just curious.. Cheers, --- a/gcc/function.c +++ b/gcc/function.c @@ -217,10 +217,10 @@ free_after_compilation (struct function *f) HOST_WIDE_INT get_frame_size (void) { - if (FRAME_GROWS_DOWNWARD) - return -frame_offset; + if (-crtl->frame.grows_downward) + return -crtl->frame.frame_offset; else - return frame_offset; + return crtl->frame.frame_offset; } frame.grows_downward is a bool it seems and as such I wonder what the minus in the condition means or is supposed to achieve?