This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] PR tree-optimization/55350: invalid pointer operand to PLUS_EXPR
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, wschmidt at linux dot vnet dot ibm dot com
- Date: Tue, 20 Nov 2012 23:23:47 +0100
- Subject: Re: [patch] PR tree-optimization/55350: invalid pointer operand to PLUS_EXPR
- References: <50ABC1DE.6080001@redhat.com>
> The problem here is that the SLSR pass is promoting a POINTER_PLUS_EXPR
> to a PLUS_EXPR. Since pointer arithmetic is invalid in
> {PLUS,MINUS}_EXPR's, the gimple verifier chokes on the invalid statement.
>
> Fixed by maintaining the POINTER_PLUS_EXPR when appropriate.
>
> OK for trunk?
The ChangeLog mentions POINTER_MINUS_EXPR, which doesn't exist.
--
Eric Botcazou