From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31476 invoked by alias); 7 Oct 2010 08:38:39 -0000 Received: (qmail 31401 invoked by uid 22791); 7 Oct 2010 08:38:38 -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:38:33 +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: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Thu, 07 Oct 2010 08:38: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/msg00628.txt.bz2 Message-ID: <20101007083800.z4coxOXleaCIosD7J9uWRDhWuEyj-_MeRe2emOqq_S8@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D45925 --- Comment #3 from Nicola Pero 2010-10-07 08:3= 8:16 UTC --- You can easily confirm the bug even in a 32 bit machine by making the follo= wing change to objc-foreach-1.m: Index: objc-foreach-1.m =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- objc-foreach-1.m (revision 165067) +++ objc-foreach-1.m (working copy) @@ -12,7 +12,7 @@ @end @implementation MyList -- (unsigned int)countByEnumeratingWithState:(struct __objcFastEnumerationS= tate *)state objects:(id *)items count:(unsigned int)stackcount +- (char)countByEnumeratingWithState:(struct __objcFastEnumerationState *)s= tate objects:(id *)items count:(unsigned int)stackcount { return 0; } Then, the result is=20 --------------------------- objc-foreach-1.m: In function =E2=80=98-[MyList(BasicTest) compilerTestAgai= nst]=E2=80=99: objc-foreach-1.m:31:1: error: invalid conversion in gimple call long unsigned int char __objc_foreach_batchsize =3D OBJ_TYPE_REF(D.2129;__objc_foreach_collection.= 0->0) (__objc_foreach_collection.0, &_OBJC_SELECTOR_TABLE, &__objc_foreach_enum_state, &__objc_foreach_items, 16); objc-foreach-1.m:31:1: error: invalid conversion in gimple call long unsigned int char __objc_foreach_batchsize =3D OBJ_TYPE_REF(D.2145;__objc_foreach_collection.= 1->0) (__objc_foreach_collection.1, &_OBJC_SELECTOR_TABLE, &__objc_foreach_enum_state, &__objc_foreach_items, 16); objc-foreach-1.m:31:1: internal compiler error: verify_gimple failed Please submit a full bug report, with preprocessed source if appropriate. See for instructions. ------------------------- And it's correct that the test fails, because the declaration of the method= is wrong; it's the internal compiler error which shouldn't be there. :-) Anyway, I think it makes sense to fix the testcases, but leave this bug ope= n as a low-priority bug fix. The problem is very unlikely to happen in practice since that method will be declared once (hopefully correctly) in the Founda= tion frameworks. Thanks