http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53621
--- Comment #14 from chrbr at gcc dot gnu.org 2012-06-13 07:45:37 UTC --- l(In reply to comment #13) > I thought that the test depends the optimization level and it assumes > -O0. I agree that enforcing -fomit-frame-pointer gives more deterministic > result, though it could break current tunings for various targets. > It would be better to ask it on the list. This change can be made SH specific. Index: gcc.dg/stack-usage-1.c =================================================================== --- gcc.dg/stack-usage-1.c (revision 2720) +++ gcc.dg/stack-usage-1.c (working copy) @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-fstack-usage" } */ +/* { dg-options "-fomit-frame-pointer" { target { sh-*-* } } } */ /* This is aimed at testing basic support for -fstack-usage in the back-ends. See the SPARC back-end for an example (grep flag_stack_usage in sparc.c). Does this patch require another approval than yours ? thanks Christian