From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20877 invoked by alias); 3 Nov 2008 20:30:00 -0000 Received: (qmail 20808 invoked by uid 22791); 3 Nov 2008 20:29:58 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 03 Nov 2008 20:29:22 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id mA3KTKs0021842; Mon, 3 Nov 2008 15:29:20 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mA3KTKxf004716; Mon, 3 Nov 2008 15:29:20 -0500 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.2/8.14.2/Submit) id mA3KTJB2020678; Mon, 3 Nov 2008 21:29:19 +0100 Date: Mon, 03 Nov 2008 20:30:00 -0000 From: Jakub Jelinek To: Janis Johnson Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix g++.dg/abi/key2.C testcase on darwin (PR testsuite/37241) Message-ID: <20081103202919.GM14706@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2008-11/txt/msg00093.txt.bz2 Hi! This testcase fails since -O0 went to -funit-at-a-time -fno-toplevel-reorder, as the _ZT{V,S,I}* objects are now emitted in different order and __ZT{V,I}* which are in the same section now use just one .section directive instead of 2, when __ZTS* was emitted in between them. Tested by Dominique, ok for trunk? 2008-11-03 Jakub Jelinek PR testsuite/37241 * g++.dg/abi/key2.C: Adjust regexps to allow __ZTV1f and __ZTI1f sharing one .section directive. --- gcc/testsuite/g++.dg/abi/key2.C.jj 2008-09-05 12:55:05.000000000 +0200 +++ gcc/testsuite/g++.dg/abi/key2.C 2008-11-03 12:53:16.000000000 +0100 @@ -2,9 +2,9 @@ // PR darwin/25908 // { dg-do compile { target *-*-darwin* } } -// { dg-final { scan-assembler ".globl __ZTV1f\\n .weak_definition __ZTV1f\\n .section __DATA,__const_coal,coalesced" } } +// { dg-final { scan-assembler ".globl __ZTV1f\\n .weak_definition __ZTV1f(\\n .section __DATA,__const_coal,coalesced)?\\n .align" } } // { dg-final { scan-assembler ".globl __ZTS1f\\n .weak_definition __ZTS1f\\n .section __TEXT,__const_coal,coalesced" } } -// { dg-final { scan-assembler ".globl __ZTI1f\\n .weak_definition __ZTI1f\\n .section __DATA,__const_coal,coalesced" } } +// { dg-final { scan-assembler ".globl __ZTI1f\\n .weak_definition __ZTI1f(\\n .section __DATA,__const_coal,coalesced)?\\n .align" } } class f { Jakub