This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] New flag -Wframe-larger-than-
- From: "Seongbae Park (박성배, 朴成培)" <seongbae dot park at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: "Gabriel Dos Reis" <gdr at integrable-solutions dot net>
- Date: Fri, 15 Feb 2008 16:58:39 -0800
- Subject: Re: [PATCH] New flag -Wframe-larger-than-
- References: <ab3a61990802151654j420d9a59ue7fb8cb0eef77216@mail.gmail.com>
[+CC gdr, diagnostic maintainer]
On Fri, Feb 15, 2008 at 4:54 PM, Seongbae Park (박성배, 朴成培)
<seongbae.park@gmail.com> wrote:
> Hi,
>
> The attached patch adds a new option -Wframe-larger-than-
> which can be used to help noticing functions with larger than usual frame sizes,
> as well as a way to enforce certain restrictions on the individual
> stack frame size
> - especially when combined with other options that will warn on
> variable-size frames
> (e.g. -Wvla and -Wdisallowed-function-list=alloca).
> Bootstrapped and regtested on i686.
> Ok for 4.4 once 4.3 is branched ?
>
> Seongbae
>
>
> gcc/ChangeLog:
>
> 2008-02-15 Seongbae Park <seongbae.park@gmail.com>
>
> * doc/invoke.texi (Warning Options): Add new option
> -Wframe-larger-than-.
> (-Wframe-larger-than): Document.
>
> * flags.h (warn_frame_larger_than, frame_larger_than_size):
> Add declarations for new option variables.
>
> * final.c (final_start_function): Check the frame size
> before emission and issue a Wframe-larger-than warning.
>
> * opts.c (warn_frame_larger_than, frame_larger_than_size):
> Add definitions for new option variables.
> (common_handle_option): Handle new option OPT_Wframe_larger_than_.
>
> * common.opt (Wframe-larger-than-): New option.
>
> gcc/testsuite/ChangeLog:
>
> 2008-02-15 Seongbae Park <seongbae.park@gmail.com>
>
> * gcc.dg/Wframe-larger-than.c: New option test.
>
--
#pragma ident "Seongbae Park, compiler, http://seongbae.blogspot.com"