This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix invalid loader fixups from shared libobjc with hpux10.20
- To: law at redhat dot com
- Subject: Re: PATCH: Fix invalid loader fixups from shared libobjc with hpux10.20
- From: Stan Shebs <shebs at apple dot com>
- Date: Wed, 13 Jun 2001 16:30:30 -0700
- CC: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, gcc-patches at gcc dot gnu dot org
- References: <20752.992398210@localhost.localdomain>
law@redhat.com wrote:
>
> > 2001-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
> >
> > * objc/objc-act.c (handle_class_ref): Use rest_of_decl_compilation
> > so that CHOOSE_SECTION gets used.
> > (handle_impent): Use assemble_variable to put the global objc class
> > and category name labels in the readonly data section.
> It's certainly wrong for a front-end to blindly dump something into the
> readonly_data_section. At the least it should be deferring to the routines
> in varasm.c to select the proper section.
It's kind of cheesy, but hardly noticeable in the mega-cheesiness of
objc-act.c. :-) :-( A number of the ObjC actions synthesize tables
and data objects, and output them directly. Many times there's not
even a decl on which to set TREE_READONLY. So it's not something to
be real proud of, but until someone rewrites the ObjC frontend to
build trees for these things as C++ does for vtables, I think we're
stuck with calling section functions directly.
Stan