This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: more hot-cold partitioning problems
- From: Paul Koning <pkoning at equallogic dot com>
- To: rth at redhat dot com
- Cc: ctice at apple dot com, gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Apr 2004 09:58:55 -0400
- Subject: Re: more hot-cold partitioning problems
- References: <20040413232529.GA14144@redhat.com>
>>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:
Richard> (c) For functions which have been assigned a section by the
Richard> user, via __attribute__((section("foo"))), it seems wrong to
Richard> split the function at all.
Agreed. I've used this feature in the past, and if the compiler were
to split such a function into multiple sections, the results would be
nasty. Presumably that could be fixed by suitable ld script magic,
but in any case the point is that I put in the section attributes
because I know more about those functions than the compiler is able to
know, and I wouldn't want the compiler to override my judgment.
paul