]> gcc.gnu.org Git - gcc.git/commit
Fix debug info for packed array types in Ada
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 6 Sep 2021 09:16:08 +0000 (11:16 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 6 Sep 2021 09:18:06 +0000 (11:18 +0200)
commitc0b03afeab4502da3040ef1ebbd28f826737fa8a
tree1af09fe1972c1ae866af8488939da17be43da15e
parent8a4602c2e0f81895415ba7ee23bf81dc795d1103
Fix debug info for packed array types in Ada

Packed array types are sometimes represented with integer types under the
hood in Ada, but we nevertheless need to emit them as array types in the
debug info so we have the types.get_array_descr_info langhook for this
purpose; but it is not invoked from modified_type_die, which causes:

FAIL: gdb.ada/arrayptr.exp: scenario=minimal: print pa_ptr.all
FAIL: gdb.ada/arrayptr.exp: scenario=minimal: print pa_ptr.all(3)

in the GDB testsuite.

gcc/
* dwarf2out.c (modified_type_die): Deal with all array types earlier
and use local variable consistently throughout the function.
gcc/dwarf2out.c
This page took 0.054644 seconds and 5 git commands to generate.