This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: COLLECT_EXPORT_LIST
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: COLLECT_EXPORT_LIST
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Mon, 12 Mar 2001 15:47:57 -0500
- Cc: Michael Meissner <meissner at cygnus dot com>, Geoff Keating <geoffk at geoffk dot org>, Zack Weinberg <zackw at Stanford dot EDU>, gcc at gcc dot gnu dot org
- References: <meissner@cygnus.com> <200103121758.MAA21670@mal-ach.watson.ibm.com>
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