This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix POINTER_PLUS_EXPR oversight


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]