RFA: Make IRA set current_function_is_leaf earlier

Richard Sandiford rdsandiford@googlemail.com
Tue Jan 6 22:04:00 GMT 2009

"Andrew Pinski" <pinskia@gmail.com> writes:
> On Sun, Jan 4, 2009 at 4:39 PM, Richard Sandiford
> <rdsandiford@googlemail.com> wrote:
>> On some targets, FRAME_POINTER_REQUIRED needs to know whether the
>> function is a leaf function.  This was OK with the old allocator,
>> which set current_function_is_leaf before testing FRAME_POINTER_REQUIRED,
>> but IRA does it the other way around.  This caused a regression in
>> "gcc.c-torture/execute/pr20621-1.c compilation, -O1" on
>> mips64el-linux-gnu with -mabi=32/-mips16.

Vlad, thanks for the review.

> This also fixes PR 38426.

Oops, sorry for the duplicate work.  I added the PR reference to
the changelog and committed it.


More information about the Gcc-patches mailing list