From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29811 invoked by alias); 21 Jan 2012 23:16:44 -0000 Received: (qmail 29803 invoked by uid 22791); 21 Jan 2012 23:16:42 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Jan 2012 23:16:29 +0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/51934] FAIL: g++.dg/torture/pr51344.C -O0 (test for excess errors) on powerpc*-*-* Date: Sat, 21 Jan 2012 23:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-01/txt/msg02489.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51934 --- Comment #6 from Dominique d'Humieres 2012-01-21 23:15:31 UTC --- > The test just should use some attribute that is common to all targets, like > __attribute__((noinline)) or similar, unless it didn't fail with that attribute > before the fix. If it didn't, then the test needs to be limited to targets > that support it. The attribute format seems to do the trick: it hangs on 4.6.2 and compiles with recent trunk. --- ../_clean/gcc/testsuite/g++.dg/torture/pr51344.C 2012-01-20 11:40:19.000000000 +0100 +++ gcc/testsuite/g++.dg/torture/pr51344.C 2012-01-22 00:13:16.000000000 +0100 @@ -4,7 +4,7 @@ class A; template class B { - friend __attribute__((cdecl)) A& operator >>(A& a, B& b) + friend __attribute__((format)) A& operator >>(A& a, B& b) { return a; }