Bug in gen_addr_rtx() in gcc4.1?

2006-04-25 Thread Charles Fu
On a system which supports 64-bit implementation but with TARGET_ILP32 ABI, like HPUX on ia64, the gcc-4.1 compiler generates incorrect code for the dejagnu test gcc.dg/tree-ssa/pr23386.c. The problem seems because that the gen_addr_rtx() in tree-ssa-address.c always returns Pmode rtx. On a TARGE

Re: Bug in gen_addr_rtx() in gcc4.1?

2006-05-02 Thread Charles Fu
Yes. I know it doesn't fail on IA64-HPUX. The reason is that the dereferencing expression has been transformed as: tmpvar = index+offset; *tmpvar; during induction variable optimization, Where tmpvar has SImode. PPC has different costs to compute induction variables as on IA64-HPUX. C