aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-10-30 13:17:11 +0100
committerRichard Biener <rguenther@suse.de>2023-11-17 08:53:51 +0100
commit1bcb7fe60544bba8b88028f9ffa062336d399664 (patch)
treefb4d7a9d2ee5a3826b3206a6e5e2647557ea1a97 /gcc/analyzer
parent37183018134049a70482a59b8f12180946ab8fa4 (diff)
downloadgcc-1bcb7fe60544bba8b88028f9ffa062336d399664.zip
gcc-1bcb7fe60544bba8b88028f9ffa062336d399664.tar.gz
gcc-1bcb7fe60544bba8b88028f9ffa062336d399664.tar.bz2
Assert we don't create recursive DW_AT_{abstract_origin,specification}
We have a support case that shows GCC 7 sometimes creates DW_TAG_label refering to itself via a DW_AT_abstract_origin when using LTO. This for example triggers the sanity check added below during LTO bootstrap. Making this check cover more than just DW_AT_abstract_origin breaks bootstrap on trunk for /* GNU extension: Record what type our vtable lives in. */ if (TYPE_VFIELD (type)) { tree vtype = DECL_FCONTEXT (TYPE_VFIELD (type)); gen_type_die (vtype, context_die); add_AT_die_ref (type_die, DW_AT_containing_type, lookup_type_die (vtype)); so the check is for now restricted to DW_AT_abstract_origin and DW_AT_specification both of which we follow within get_AT. * dwarf2out.cc (add_AT_die_ref): Assert we do not add a self-ref DW_AT_abstract_origin or DW_AT_specification.
Diffstat (limited to 'gcc/analyzer')
0 files changed, 0 insertions, 0 deletions