From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25511 invoked by alias); 8 Apr 2011 13:22:00 -0000 Received: (qmail 25501 invoked by uid 22791); 8 Apr 2011 13:21:59 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Apr 2011 13:21:55 +0000 Received: by fxm19 with SMTP id 19so2752865fxm.20 for ; Fri, 08 Apr 2011 06:21:54 -0700 (PDT) Received: by 10.223.74.83 with SMTP id t19mr378647faj.149.1302268914154; Fri, 08 Apr 2011 06:21:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.81.75 with HTTP; Fri, 8 Apr 2011 06:21:34 -0700 (PDT) In-Reply-To: References: <4D9D56F4.3050203@gmail.com> From: Laurynas Biveinis Date: Fri, 08 Apr 2011 13:22:00 -0000 Message-ID: Subject: Re: [gc-improv] Permanent vs function RTL obstack fix To: Steven Bosscher Cc: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2011-04/txt/msg00623.txt.bz2 2011/4/8 Steven Bosscher : >> =C2=A0 =C2=A0 =C2=A0 =C2=A0* stmt.c (label_rtx): Allocate RTX in permane= nt RTL memory. > > That looks strange, labels should be function specific, except > non-local labels. Maybe you can get away with allocating DECL_NONLOCAL > labels on the permanent rtl obstack? That's a good idea, I will try it once things are stable on the branch. > Perhaps a third, per-translation-unit obstack is necessary? Perhaps. After I finish with permanent rtl obstack, I will measure how large it gets and if it's worthwhile to split out per-translation-obstack out of it. Thanks, --=20 Laurynas