This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH GCC]Add 'force-dwarf-lexical-blocks' command line option
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: "Herman, Andrei" <Andrei_Herman at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 8 May 2014 21:01:13 +0000
- Subject: RE: [PATCH GCC]Add 'force-dwarf-lexical-blocks' command line option
- Authentication-results: sourceware.org; auth=none
- References: <FEC4CADEDABC9E40A1EC17465AAC8402AE41BF45 at EU-MBX-04 dot mgc dot mentorg dot com> <Pine dot LNX dot 4 dot 64 dot 1405071752050 dot 29322 at digraph dot polyomino dot org dot uk> <FEC4CADEDABC9E40A1EC17465AAC8402AE41D351 at EU-MBX-04 dot mgc dot mentorg dot com> <Pine dot LNX dot 4 dot 64 dot 1405081725290 dot 4990 at digraph dot polyomino dot org dot uk> <FEC4CADEDABC9E40A1EC17465AAC8402AE41D3B2 at EU-MBX-04 dot mgc dot mentorg dot com>
On Thu, 8 May 2014, Herman, Andrei wrote:
> > > Declarations that would fall into the scope of a newly created label
> > > scope are moved into the enclosing "normal" (non label) scope, where
> > they actually belong.
> >
> > Shouldn't you be able to do something like that for the other cases as well,
> > to avoid forcing C99 scoping rules?
>
> I will think about it if you think it's critical.
I think it's logically the right design of the option.
--
Joseph S. Myers
joseph@codesourcery.com