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: Disable sibcall optimization when -Os


On Sat, 12 Apr 2003, Jan Hubicka wrote:

> > tm_gccmail at mail dot kloo dot net writes:
> > 
> > > On my testcases for the SH4, I see significant code expansion (~8%) when
> > > sibcall optimization is enabled due to:
> > > 
> > > 1) A bunch of register pushes (typically 8) generated (16 bytes or so)
> > > 
> > > 2) A BARRIER generated afterwards which forces 32-byte alignment
> > >    (average 16 bytes)
> 
> The alignment should not happen for -Os or is it required for
> correctness? 
> 
> Honza

No, it's not required for correctness, but the extra register pushes still
occur.

Toshi



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