This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Regression due to tree loop opt / expand weirdness
- From: Richard Henderson <rth at redhat dot com>
- To: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 3 Oct 2004 12:54:44 -0700
- Subject: Re: Regression due to tree loop opt / expand weirdness
- References: <200410031940.VAA11883@faui1m.informatik.uni-erlangen.de>
On Sun, Oct 03, 2004 at 09:40:12PM +0200, Ulrich Weigand wrote:
> Richard, I appears you've added the valid_pointer_mode check to
> expand_expr_addr_expr -- could you elaborate how the back-end is
> supposed to handle this?
The reason to allow non-Pmode is that otherwise ilp32 on 64-bit targets
breaks. That's the narrowest condition I could find that keeps ia64-hpux
working. Computing symbol_ref in ptr_mode and not Pmode is not a new
thing, it's been done for quite some time.
As for why the tree loop optimizer is playing such silly narrowing games
with pointers, ask Zdenek. I've already expressed my opinion that it's
wrong, but it has been an uphill fight trying to convince him.
r~