This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: more hot-cold partitioning problems


>>>>> "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


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