This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Speed up warnings about jumps over declarations
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 26 Jan 2011 01:13:07 +0000 (UTC)
- Subject: Re: PATCH RFA: Speed up warnings about jumps over declarations
- References: <mcrd3nk1xor.fsf@google.com>
On Tue, 25 Jan 2011, Ian Lance Taylor wrote:
> 2011-01-25 Ian Lance Taylor <iant@google.com>
>
> PR tree-optimization/26854
> * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
> (decl_jump_unsafe): Move higher in file, with no other change.
> (bind): Set has_jump_unsafe_decl if appropriate.
> (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
> (check_earlier_gotos): Likewise.
> (c_check_switch_jump_warnings): Likewise.
OK.
--
Joseph S. Myers
joseph@codesourcery.com