From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12833 invoked by alias); 7 Apr 2011 06:17:51 -0000 Received: (qmail 12825 invoked by uid 22791); 7 Apr 2011 06:17:50 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Apr 2011 06:17:42 +0000 Received: by wye20 with SMTP id 20so2234437wye.20 for ; Wed, 06 Apr 2011 23:17:40 -0700 (PDT) Received: by 10.227.28.154 with SMTP id m26mr449156wbc.216.1302157060647; Wed, 06 Apr 2011 23:17:40 -0700 (PDT) Received: from [192.168.0.6] (cable-236-212.cgates.lt [79.133.236.212]) by mx.google.com with ESMTPS id h11sm812450wbc.43.2011.04.06.23.17.37 (version=SSLv3 cipher=OTHER); Wed, 06 Apr 2011 23:17:38 -0700 (PDT) Message-ID: <4D9D56F4.3050203@gmail.com> Date: Thu, 07 Apr 2011 06:17:00 -0000 From: Laurynas Biveinis User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org Subject: [gc-improv] Permanent vs function RTL obstack fix Content-Type: multipart/mixed; boundary="------------010803080504050501070707" 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/msg00532.txt.bz2 This is a multi-part message in MIME format. --------------010803080504050501070707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 187 Fixes a bunch of C testsuite failures. Committed to gc-improv. 2011-04-07 Laurynas Biveinis * stmt.c (label_rtx): Allocate RTX in permanent RTL memory. --------------010803080504050501070707 Content-Type: text/x-patch; name="10-label-rtx.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="10-label-rtx.patch" Content-length: 458 Index: stmt.c =================================================================== --- stmt.c (revision 170593) +++ stmt.c (working copy) @@ -139,7 +139,10 @@ if (!DECL_RTL_SET_P (label)) { - rtx r = gen_label_rtx (); + rtx r; + use_rtl_permanent_mem (); + r = gen_label_rtx (); + use_rtl_function_mem (); SET_DECL_RTL (label, r); if (FORCED_LABEL (label) || DECL_NONLOCAL (label)) LABEL_PRESERVE_P (r) = 1; --------------010803080504050501070707--