[Bug debug/93751] -g1 does not behave per manual
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 18 01:22:44 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93751
--- Comment #18 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:52b3aa8be18938486065f5f2a23553b134a10a81
commit r10-7235-g52b3aa8be18938486065f5f2a23553b134a10a81
Author: Alexey Neyman <stilor@att.net>
Date: Sat Mar 14 17:05:36 2020 -0700
dwarf: Generate DIEs for external variables with -g1 [93751]
-g1 is described in the manual to generate debug info for functions and
external variables. It does that for older debugging formats but not for
DWARF. This change brings DWARF in line with the rest of the debugging
formats and with the manual.
gcc/ChangeLog
2020-03-17 Alexey Neyman <stilor@att.net>
PR debug/93751
* dwarf2out.c (gen_decl_die): Proceed to generating the DIE if
the debug level is terse and the declaration is public. Do not
generate type info.
(dwarf2out_decl): Same.
(add_type_attribute): Return immediately if debug level is
terse.
Signed-off-by: Alexey Neyman <stilor@att.net>
More information about the Gcc-bugs
mailing list