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: Refine rules for function versioning


On Fri, Jun 26, 2009 at 11:45 AM, Richard Henderson<rth@redhat.com> wrote:
> This is a small merge from the trans-mem branch, where I want to allow more
> functions to be versioned. ?Merging this now means those rules get tested
> with the ipa-cp routines on mainline, which should lead to less breakage
> when merging the branch.
>
> At present, function versioning is using exactly the same rules as for
> function inlining, even though quite a number of those rules don't really
> make sense as versioning rules -- such as calls to alloca or setjmp.
>
> This patch splits out the rules that apply only to the copying of code and
> uses that as a common base for both inlining and versioning. Further, rules
> that apply only to ipcp's algorithms are pushed into a new function specific
> to ipcp.
>
> Finally, it fixes one bug that is exposed by ipcp now versioning a function
> that contains nested functions.
>
> Tested on x86-64 with ada.
>

This may have caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40565

-- 
H.J.


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