This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix POINTER_PLUS_EXPR oversight
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Bernd Schmidt <bernds_cb1 at t-online dot de>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 1 Mar 2012 20:28:06 +0000 (UTC)
- Subject: Re: Fix POINTER_PLUS_EXPR oversight
- References: <4F4FDABB.5060308@t-online.de>
On Thu, 1 Mar 2012, Bernd Schmidt wrote:
> In pointer_diff we still expect pointer addition to use PLUS_EXPR. I
> discovered this while working on a new port with somewhat unusual
> pointer types.
>
> Interestingly, the C++ frontend also has a pointer_diff function, but
> doesn't seem to attempt to optimize. Is there a reason for this?
>
> Bootstrapped and tested on i686-linux. Ok for now or stage1?
OK for stage 1.
--
Joseph S. Myers
joseph@codesourcery.com