http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53621
--- Comment #12 from chrbr at gcc dot gnu.org 2012-06-13 07:14:49 UTC --- (In reply to comment #11) > Looks a problem with the test. It should be tweaked with adding > > #elif defined (__sh__) > # define SIZE 252 > > for frame pointer save area. but that would make it dependent of the optimization level, wouldn't it ? The problem is that -fomit-frame--pointer is not set in -O0. so the ways to fixing it would be 1) enforce -fomit-frame-pointer in the stack-usage test, so we have a deterministic result 2) change the machine description so that the frame pointer is not needed in -O0. Actually I don't foresee any problem with this, but should be tried on the trunk only and with a different patch. for the current issue I propose to fix the test for the SH with 1). what do you think Kaz ?