On Fri, Nov 04, 2011 at 06:19:07PM +0000, Iain Sandoe wrote: > I did wonder, when implementing the out-of-line saves for Darwin, > whether the setting in sysv4.h is a bit optimistic in firing for r31 > when -Os is on. > > whether it saves space, in reality, would presumably depend on > whether branch islands were inserted to reach the common code.
Yes, but that doesn't happen on powerpc-linux until code size goes above 33M. We get a (small) gain otherwise when able to use the exit versions of the out-of-line restores. > Bootstrapped this, Thanks! -- Alan Modra Australia Development Lab, IBM