From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21551 invoked by alias); 7 Oct 2010 08:18:13 -0000 Received: (qmail 21542 invoked by uid 22791); 7 Oct 2010 08:18:13 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID,TW_BJ 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; Thu, 07 Oct 2010 08:18:09 +0000 From: "nicola at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc/45925] New objc test failures X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nicola at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC 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 Date: Thu, 07 Oct 2010 08:18:00 -0000 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: 2010-10/txt/msg00625.txt.bz2 Message-ID: <20101007081800.guWat9vVC94VDbOuFEtPytkaKfSe2q67XYC1xvfQfpc@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45925 Nicola Pero changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nicola at gcc dot gnu.org --- Comment #1 from Nicola Pero 2010-10-07 08:18:03 UTC --- Is there any way I can see the detailed logs of the failure ? If it's the same problem that IainS reported to me privately, then it's caused by a bug in the Apple testcases (objc-foreach-1.m etc) -- @implementation MyList - (unsigned int)countByEnumeratingWithState:(struct __objcFastEnumerationState *)state objects:(id *)items count:(unsigned int)stackcount { return 0; } @end the return value should be 'long unsigned int', not 'unsigned int', and so for 'stackcount'. What happens then is that the ObjC code generates a method call returning/taking a 'long unsigned int', but the prototype says 'unsigned int', and a gimplify check fails and aborts compilation. I would imagine a fix would entail: * having the ObjC FE check that countByEnumeratingWithState:objects:count: has the expected method signature; if not, produce an error. The testcases would still fail, but with an informative message rather than an internal compiler error :-) * fix the testcases (and add a testcase for the above error). Thanks