]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Emit DW_AT_GNU_bias with -fgnat-encodings=gdb
authorpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Sep 2019 08:14:57 +0000 (08:14 +0000)
committerpmderodat <pmderodat@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Sep 2019 08:14:57 +0000 (08:14 +0000)
commit8b1002edc9ad6ec3ef44a9052909a6ca51bfd1cb
tree6457e5e7f50b252680c6f30eb9964ea84d219248
parentf809d10c40c439333d89f75994f9e50ae47f7d77
[Ada] Emit DW_AT_GNU_bias with -fgnat-encodings=gdb

Emit DW_AT_GNU_bias with -fgnat-encodings=gdb.  gdb implements this,
but not the encoded variant.

2019-09-19  Tom Tromey  <tromey@adacore.com>

gcc/ada/

* gcc-interface/misc.c (gnat_get_type_bias): Return the bias
when -fgnat-encodings=gdb.

gcc/testsuite/

* gnat.dg/bias1.adb: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275958 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/bias1.adb [new file with mode: 0644]