re PR c/79969 (C FE emits locus of forward enum declaration rather than definition...
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Mar 2017 16:42:45 +0000 (17:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Mar 2017 16:42:45 +0000 (17:42 +0100)
commit01e5af5a2f5fa4813e359bc03d42e98d091c7a2d
tree00751fa0f7edfc1585af540a59ca67baebbdd525
parent6443c7c0e5e1b348ff5841463e3c3828b3036e30
re PR c/79969 (C FE emits locus of forward enum declaration rather than definition into debug info)

PR c/79969
* c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
TYPE_STUB_DECL.

* gcc.dg/debug/dwarf2/enum-loc1.c: New test.

From-SVN: r246009
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/enum-loc1.c [new file with mode: 0644]