This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Initial shrink-wrapping patch
Bernd Schmidt <bernds@codesourcery.com> writes:
> This appears to be because the split prologue contains a jump, which
> means the find_many_sub_blocks call reorders the block numbers, and our
> indices into bb_flags are off.
>
> I'm testing the following patch, but it won't finish today - feel free
> to test and check it in, or to just disable shrink-wrapping with split
> prologues.
Thinking about it I think this is the wrong approach. The -fsplit-stack
code by definition has to wrap the entire function and it can not modify
any callee-saved registers. We should do shrink wrapping before
-fsplit-stack, not the other way around.
Ian