This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: COLLECT_EXPORT_LIST


On Mon, Mar 12, 2001 at 12:58:19PM -0500, David Edelsohn wrote:
> >>>>> Michael Meissner writes:
> 
> Michael> GNU ld does have suppport for aggresive garbage collection these days, though
> Michael> whether the AIX target supports --gc-sections, I dunno.  IIRC, under AIX, the
> Michael> compiler always does the equivalent of -ffunction-sections and -fdata-sections
> Michael> to allow the GC to work.
> 
> 	Which "compiler"?  GCC does not perform the equivalent of
> -ffunction-sections and -fdata-sections.  I just recently added
> preliminary -ffunction-sections support.  XLC performs -fdata-sections by
> default, but not -ffunction-sections.  The XLC option equivalent to
> -ffunction-sections is -qfuncsect.

You are right, I thought GCC was putting each function in its own .csect, but
it doesn't seem to be.  I think I was confusing it with the csects created for
the 3 word function pointer area that is created.

-- 
Michael Meissner, Red Hat, Inc.  (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]