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]

Re: [PATCH]: two warnings useful for monitoring stack usage


On 30-Jan-2001, David Whedon <dwhedon@gordian.com> wrote:
> --- c-decl.c	2001/01/31 02:29:29
> *************** c_decode_option (argc, argv)
> *** 744,749 ****
> --- 744,775 ----
>       warn_missing_braces = 0;
>     else if (!strcmp (p, "-Wmain"))
>       warn_main = 1;
> +   else if (!strncmp (p, "-Wframe-size-", 13))
> +     {
> +       const char *argstart = &p[13];
...
> +   else if (!strncmp (p, "-Warglist-size-", 15))
> +     {
> +       const char *argstart = &p[15];

It would be nicer to use skip_leading_substring() from toplev.h.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.

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