powercp-linux cross GCC 4.2 vs GCC 4.0.0: -Os code size regression? (filed bug 34903)[Emcraft #11717]

Sergei Poselenov sposelenov@emcraft.com
Mon Jan 21 17:25:00 GMT 2008


Hello all,

I've filed bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34903

Regards,
Sergei

Andrew Haley wrote:
> David Edelsohn wrote:
>>>>>>> Andrew Haley writes:
>>
>> Andrew> I suspect that the real reason for the change in save/restore 
>> is because
>> Andrew> not using lmw/stmw is faster.  That's just a guess though.  
>> gcc could probably
>> Andrew> be fixed to use ldmw/stmw if -Os is used.
>>
>> Andrew> Anyway, now we've found something specific this is for the ppc 
>> maintainer to comment.
>>
>>     GCC does use load/store multiple and load/store string
>> instructions if -Os is used, but not when the sequence is broken up by a
>> fixed register.
> 
> Err, why not?
> 
> Thanks,
> Andrew.
> 



More information about the Gcc mailing list