From patchwork Sat Jan 14 19:57:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 136104 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]) by ozlabs.org (Postfix) with SMTP id 2B53CB6F68 for ; Sun, 15 Jan 2012 06:57:44 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1327175865; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=jUj9CAr Cgv2laBSWBafsv3NI31Q=; b=T2I8yYdL0Qvcszdq4mc1MniNUCkb1vAJqDm4HLx aGr3cLRJBAPxIPcMctVjZpTdWLXE8yhceezurVX6nKXqoCXeIMnHtArbj4YEEmiv PYLtOANRVp07rdlXw1k3M5vtj0QreroTDt+7RmEUEPv3Crx89XgjJ3JMCQ7tpLMb mqf0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Auth-Info:Received:Received:From:To:Subject:X-Yow:Date:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=eDtl3B5kfHmtIN8ggynjl3OUaTfVQZjoYaed4Z3Kfd3ljrUS3qQwbol6ksCIV3 Jaf2N37Oo/9172obdwOB4e0N4K/wBBkZgaykCP+ZGP2XdmTjAtsVXzKN9Uxj+gS/ 7wpGTwqzL8FAgbONnUcj3vfRUxoKfYdDrqiAT5SbdZaBA=; Received: (qmail 20963 invoked by alias); 14 Jan 2012 19:57:40 -0000 Received: (qmail 20951 invoked by uid 22791); 14 Jan 2012 19:57:39 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Jan 2012 19:57:02 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id B99F518001BE for ; Sat, 14 Jan 2012 20:57:00 +0100 (CET) X-Auth-Info: YAs/7FPgbu1xIkxN33uKW8Bc1QBe8vwiq4EFW0+x1RE= Received: from igel.home (ppp-88-217-118-21.dynamic.mnet-online.de [88.217.118.21]) by mail.mnet-online.de (Postfix) with ESMTPA id BEA471C00074 for ; Sat, 14 Jan 2012 20:57:00 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 74AD6CA29A; Sat, 14 Jan 2012 20:57:00 +0100 (CET) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix g++.dg/cpp0x/constexpr-rom.C failure X-Yow: I'm encased in the lining of a pure pork sausage!! Date: Sat, 14 Jan 2012 20:57:00 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 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 Fix spurious failure by disabling use of sdata. Tested on powerpc-linux. Andreas. 2012-01-14 Andreas Schwab * g++.dg/cpp0x/constexpr-rom.C: Add -G0 where applicable. diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-rom.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-rom.C index aa9ff5d..5853ea1 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-rom.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-rom.C @@ -1,5 +1,6 @@ // PR c++/49673: check that test_data goes into .rodata // { dg-options -std=c++0x } +// { dg-options "-std=c++0x -G0" { target alpha*-*-* frv*-*-* ia64-*-* lm32*-*-* m32r*-*-* microblaze*-*-* mips*-*-* powerpc*-*-* rs6000*-*-* score*-*-* } } // { dg-final { scan-assembler "\\.rdata" { target mips*-*-* } } } // { dg-final { scan-assembler "rodata" { target { { *-*-linux-gnu || *-*-elf } && { ! mips*-*-* } } } } }