On Mon, May 23, 2011 at 12:15 PM, Eric Botcazou <ebotca...@adacore.com> wrote: >> > Fix annoying gcov filename handling (gcov.c, 2 lines): >> > http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01380.html >> >> Ok. > > Thanks! > >> > Introduce -Wstack-usage: >> > http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01992.html >> >> I wonder if we can't simply use -Wframe-larger-than but with >> the more precise information when -fstack-usage is present. > > Do you mean when -fstack-usage is enabled? This will generate the .su file as > a by-product. The advantage of -Wstack-usage is that it has the same name as > its sibling flag so you can pass -fstack-usage -Wstack-usage to the compiler.
Yes, I mean when -fstack-usage is enabled. Thus, make -fstack-usage -Wframe-larger-than behave the same as -fstack-usage -Wstack-usage. Or do you say that -Wstack-usage doesn't require -fstack-usage? If it doesn't then I hope -Wstack-usage does not have effects on code generation? And if not then why can't -Wframe-larger-than just be more precise on some targets? Richard. > -- > Eric Botcazou >