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: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: ""Seongbae Park (ëìë, ææå)"" <seongbae dot park at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 16 Feb 2008 12:28:55 +0000
- Subject: Re: [PATCH] New flag -Wframe-larger-than-
- References: <ab3a61990802151654j420d9a59ue7fb8cb0eef77216@mail.gmail.com>
""Seongbae Park (ëìë, ææå)"" <seongbae.park@gmail.com> writes:
> +@item -Wframe-larger-than-@var{len}
> +@opindex Wframe-larger-than
> +Warn whenever the size of a function frame is larger than @var{len} bytes.
I might be being paranoid, but would it be worth adding some weasel
words to say that frame sizes might go up as well as down when moving
to a newer release? This isn't the sort of thing you could safely use
with -Werror, for example.
(Also, this patch only accounts for the target-independent parts
of the frame size. It doesn't include register save areas, etc.)
Richard