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: RFA: New optimization: Convert local statics into non-statics


On Mon, 21 Jul 2008, Nick Clifton wrote:

> Hi Joseph,
> 
> > We also have a version of this optimization at CodeSourcery, implemented by
> > Nathan Froyd. 
> 
> Fascinating.  Does your version cope with local statics used by recursive
> functions ?  eg:

It is intended to do so by disabling the optimization in problematic such 
cases (possibly over-conservatively).  Nathan can confirm.

I should point out that in "x + foo (a - 1)" the order of evaluation of 
"x" and "foo (a - 1)" is unspecified, although by the stage of this 
optimization the particular order has been chosen (at gimplification 
time).

-- 
Joseph S. Myers
joseph@codesourcery.com


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