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]
Other format: [Raw text]

Re: [PATCH] New flag -Wframe-larger-than-


[+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";

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