http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53249
--- Comment #9 from rdsandiford at googlemail dot com <rdsandiford at googlemail dot com> 2012-05-06 15:56:09 UTC --- "hjl.tools at gmail dot com" <gcc-bugzi...@gcc.gnu.org> writes: > get_address_mode in dwarf2out.c works for this testcase. Yeah, that's what I was testing FWIW. If x32 wants to do this, then pretty much every instance of: targetm.addr_space.address_mode (MEM_ADDR_SPACE (mem)) needs to use get_address_mode instead. So I'm trying to convert all of them. (There's a duplicate copy in var-tracking.c, so the patch consolidates them into a general rtl.h function.)