This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/38757] gcc does not emit DW_LANG_C99
- From: "mark at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Nov 2014 11:05:52 +0000
- Subject: [Bug debug/38757] gcc does not emit DW_LANG_C99
- Auto-submitted: auto-generated
- References: <bug-38757-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38757
--- Comment #8 from Mark Wielaard <mark at gcc dot gnu.org> ---
Author: mark
Date: Wed Nov 26 11:05:20 2014
New Revision: 218077
URL: https://gcc.gnu.org/viewcvs?rev=218077&root=gcc&view=rev
Log:
PR debug/38757 continued. Handle C11, C++11 and C++14.
Add experimental (minimal) DWARFv5 support.
This change depends on the new DWARFv5 constants mentioned in the
following draft: http://dwarfstd.org/doc/dwarf5.20141029.pdf
gcc/ChangeLog
* doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
* opts.c (common_handle_option): Accept -gdwarf-5.
* dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
DW_LANG_C_plus_plus_14.
(lower_bound_default): Likewise. Plus DW_LANG_C11.
(gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
DW_LANG_C_plus_plus_14 or DW_LANG_C11.
(output_compilation_unit_header): Output at most a DWARFv4 header.
(output_skeleton_debug_sections): Likewise.
(output_line_info): Likewise.
(output_aranges): Document header version number.
gcc/testsuite/ChangeLog
* gcc.dg/debug/dwarf2/lang-c11.c: New test.
* gcc.dg/debug/dwarf2/lang-c11-d4-strict.c: Likewise.
* g++.dg/debug/dwarf2/lang-cpp11.C: Likewise.
* g++.dg/debug/dwarf2/lang-cpp14.C: Likewise.
* g++.dg/debug/dwarf2/lang-cpp98.C: Likewise.
include/ChangeLog
* dwarf2.h: Add DW_LANG_C_plus_plus_11, DW_LANG_C11 and
DW_LANG_C_plus_plus_14.
Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp11.C
trunk/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp14.C
trunk/gcc/testsuite/g++.dg/debug/dwarf2/lang-cpp98.C
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/lang-c11-d4-strict.c
trunk/gcc/testsuite/gcc.dg/debug/dwarf2/lang-c11.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/doc/invoke.texi
trunk/gcc/dwarf2out.c
trunk/gcc/opts.c
trunk/gcc/testsuite/ChangeLog
trunk/include/ChangeLog
trunk/include/dwarf2.h