bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch #4206] libobjc: Extend protocol hack to all gcc versions


From: Jeremy Bettis
Subject: Re: [patch #4206] libobjc: Extend protocol hack to all gcc versions
Date: Tue, 26 Jul 2005 14:39:31 -0500

Gcc has a libobjc also, but the code I patched was from gnustep's CVS server, not gcc's.

Let's take one step at a time.

----- Original Message ----- From: "Andrew Pinski" <pinskia@physics.uc.edu>
To: "Jeremy Bettis" <savannah-bounces@gnu.org>
Cc: "Jeremy Bettis" <jeremy@deadbeef.com>; <bug-gnustep@gnu.org>
Sent: Tuesday, July 26, 2005 12:21 PM
Subject: Re: [patch #4206] libobjc: Extend protocol hack to all gcc versions




Follow-up Comment #1, patch #4206 (project gnustep):

HA! I found the real problem, and have undid this icky hack.

It was a complex situation. You had to have 2 protocols, where the first one was used by a class, and the second was not. Also you had to have a Category which implemented a protocol which inherited from a protocol not used by any
class, and the protocol had to not be the first one in the module symbol
table.

whew.

In any case, this new patch deals with this.

2 changes,
1) we need to initalize all statics, even if the first one is initalized.
2) we need to call __objc_init_protocols on the super-protocols even if the
protocol itself is initialized.

libobjc is part of GCC, could you submit a GCC bug as attach the patch there.
Please make sure that you have a testcase.

Thanks,
Andrew Pinski
a libobjc maintainer






reply via email to

[Prev in Thread] Current Thread [Next in Thread]