re PR debug/42801 (C VLAs should use DW_AT_allocated)
PR debug/42801 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here... (copy_bind_expr): ... instead of here. (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK if the block hasn't been remapped. * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When emitting concrete instance of abstract VLA, add DW_AT_type attribute. * gcc.dg/guality/sra-2.c: New test. From-SVN: r159826
Showing
gcc/testsuite/gcc.dg/guality/sra-2.c
0 → 100644
Please
register
or
sign in
to comment