This is the mail archive of the gcc-bugs@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]

[Bug debug/55541] [4.8/4.9/5 Regression] unable to see local variables due extra lexical block was generated


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55541

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb 12 18:09:59 2015
New Revision: 220650

URL: https://gcc.gnu.org/viewcvs?rev=220650&root=gcc&view=rev
Log:
    PR debug/55541
    * cp-tree.h (BLOCK_OUTER_CURLY_BRACE_P): Define.
    * decl.c (poplevel): If functionbody, try not to create an extra
    BLOCK for function body and use subblocks as that, if it is non-NULL
    and doesn't have siblings.  Set BLOCK_OUTER_CURLY_BRACE_P flag.
    (outer_curly_brace_block): Use BLOCK_OUTER_CURLY_BRACE_P flag.

    * g++.dg/debug/dwarf2/localclass3.C: Adjust for the extraneous
    DW_TAG_lexical_block removal.
    * g++.dg/debug/dwarf2/redeclaration-1.C: Likewise.
    * g++.dg/guality/pr55541.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/guality/pr55541.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/localclass3.C
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/redeclaration-1.C


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