diff options
author | James Bowman <james.bowman@ftdichip.com> | 2017-11-07 01:10:18 +0000 |
---|---|---|
committer | James Bowman <jamesbowman@gcc.gnu.org> | 2017-11-07 01:10:18 +0000 |
commit | a297ccb52e0c894e8160c60319b71f5dedf28643 (patch) | |
tree | c31b6993e4e0c4ca358998c53b8653a22223ef00 /libgcc | |
parent | 853c0dfba2e6afe6dbb17e58c300b38670524890 (diff) | |
download | gcc-a297ccb52e0c894e8160c60319b71f5dedf28643.zip gcc-a297ccb52e0c894e8160c60319b71f5dedf28643.tar.gz gcc-a297ccb52e0c894e8160c60319b71f5dedf28643.tar.bz2 |
FT32 makes use of multiple address spaces.
FT32 makes use of multiple address spaces. When trying to inspect
objects in GDB, GDB was treating them as a straight "const". The cause
seems to be in GCC DWARF2 output.
This output is handled in gcc/gcc/dwarf2out.c, where modified_type_die()
checks that TYPE has qualifiers CV_QUALS. However while TYPE has
ADDR_SPACE qualifiers, the modified_type_die() explicitly discards the
ADDR_SPACE qualifiers.
This patch retains the ADDR_SPACE qualifiers as modified_type_die()
outputs the DWARF type tree. This allows the types to match, and correct
type information for the object is emitted.
[gcc]
2017-11-06 James Bowman <james.bowman@ftdichip.com>
* gcc/dwarf2out.c (modified_type_die): Retain ADDR_SPACE
qualifiers.
(add_type_attribute) likewise.
From-SVN: r254484
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions