diff options
author | Richard Henderson <rth@redhat.com> | 2015-11-09 01:19:19 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2015-11-09 01:19:19 -0800 |
commit | f736b911e6fb32807028ef1624fd73dfca33d699 (patch) | |
tree | 3998331b05016b3ed00e47dcd1382849d5f9a05f /gcc/targhooks.c | |
parent | 6626f97034083631b76c3db092f4bf1156d9d078 (diff) | |
download | gcc-f736b911e6fb32807028ef1624fd73dfca33d699.zip gcc-f736b911e6fb32807028ef1624fd73dfca33d699.tar.gz gcc-f736b911e6fb32807028ef1624fd73dfca33d699.tar.bz2 |
Add hook for modifying debug info for address spaces
* dwarf2out.c (modified_type_die): Pass the address space number
through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
* target.def (TARGET_ADDR_SPACE_DEBUG): New.
* targhooks.c (default_addr_space_debug): New.
* targhooks.h (default_addr_space_debug): Declare.
* doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
* doc/tm.texi: Rebuild.
From-SVN: r230000
Diffstat (limited to 'gcc/targhooks.c')
-rw-r--r-- | gcc/targhooks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/targhooks.c b/gcc/targhooks.c index d9108a6..c810525 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1277,6 +1277,14 @@ default_addr_space_zero_address_valid (addr_space_t as ATTRIBUTE_UNUSED) return false; } +/* The default hook for debugging the address space is to return the + address space number to indicate DW_AT_address_class. */ +int +default_addr_space_debug (addr_space_t as) +{ + return as; +} + /* The default hook for TARGET_ADDR_SPACE_CONVERT. This hook should never be called for targets with only a generic address space. */ |