diff options
| author | Jason Merrill <jason@redhat.com> | 2020-11-10 18:02:04 -0500 |
|---|---|---|
| committer | Jason Merrill <jason@redhat.com> | 2020-11-12 00:58:04 -0500 |
| commit | 87b7d45e358e4df93b6a93b2e7a55b123ea76f5d (patch) | |
| tree | 79fa060941ef1ec3bc359c0e3d4963c37af7dcf6 /libcpp/errors.c | |
| parent | d33bc98f5bc65f2505fcaefb0f9055ec67fe36d2 (diff) | |
| download | gcc-87b7d45e358e4df93b6a93b2e7a55b123ea76f5d.zip gcc-87b7d45e358e4df93b6a93b2e7a55b123ea76f5d.tar.gz gcc-87b7d45e358e4df93b6a93b2e7a55b123ea76f5d.tar.bz2 | |
dwarf2: Set DW_AT_declaration for undefined fns [PR97060]
If DECL_INITIAL isn't set, we can't emit anything about the body of the
function, so add the declaration attribute.
gcc/ChangeLog:
PR debug/97060
* dwarf2out.c (gen_subprogram_die): It's a declaration
if DECL_INITIAL isn't set.
gcc/testsuite/ChangeLog:
PR debug/97060
* gcc.dg/debug/dwarf2/pr97060.c: New test.
Diffstat (limited to 'libcpp/errors.c')
0 files changed, 0 insertions, 0 deletions
