This is the mail archive of the
mailing list for the GCC project.
Re: [patch, objc] fix PR43061
On Tue, Feb 16, 2010 at 1:36 AM, Mike Stump <firstname.lastname@example.org> wrote:
> On Feb 15, 2010, at 4:05 PM, IainS wrote:
>> proposed patch to fix this.
>> boostrapped/make check-objc ?on i686-apple-darwin9
>> restores the objc test results to the same as 156187 (last local set I
>> 2010-02-15 ?Iain Sandoe ?<email@example.com>
>> ? ? ? ?PR objc/43061
>> ? ? ? ?*gcc/objc/objc-act.c(finish_var_decl) ? Add "used" attribute to
>> ? ? ? ?vars in addition to the TREE_USED. This is needed by ipa*.c
>> ? ? ? ?and cgraphunit.c.
> So, it would seem to me that slightly better than this would be to have
> those places test DECL_PRESERVED_P.
> ?If that fixes this, I think I like that
> version a bit better than this version. ?I'm fine with this going in now, if
> you want, though, would be nice to remove it once the rest of the compiler
> can handle it.