Re: RFA: Fix debug address mode for TARGET_MEM_REF

2014-10-08 Thread Joern Rennecke
On 8 October 2014 12:02, Richard Biener wrote: ... > - if (POINTER_TYPE_P (TREE_TYPE (exp))) > - as = TYPE_ADDR_SPACE (TREE_TYPE (TREE_TYPE (exp))); > - else > - as = ADDR_SPACE_GENERIC; > - > + as = TYPE_ADDR_SPACE (TREE_TYPE (TREE_TYPE (TREE_OPERAND (exp, 0; >

Re: RFA: Fix debug address mode for TARGET_MEM_REF

2014-10-08 Thread Richard Biener
On Wed, Oct 8, 2014 at 10:16 AM, Joern Rennecke wrote: > Trying to build avr2 strftime of avr-libc ICEs as we are trying to > convert a PSImode address to HImode. There is no reason to > do this conversion in the first place - it is a case of failing to recognize > the proper address space. > > T

RFA: Fix debug address mode for TARGET_MEM_REF

2014-10-08 Thread Joern Rennecke
Trying to build avr2 strftime of avr-libc ICEs as we are trying to convert a PSImode address to HImode. There is no reason to do this conversion in the first place - it is a case of failing to recognize the proper address space. The attached patch fixes this. Bootstrapped on i686-pc-linux-gnu.