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: [PATCH] Constant fold -A - B as -B - A


On Wed, 15 Jan 2003, Roger Sayle wrote:

> Hopefully, the code that believes that signed integer addition is
> undefined and takes advantage of it is confined to the language
> front-ends.  I believe GCC supports languages that define (or
> expect) the behaviour of signed integer overflow.

It should be in the front ends, but it isn't (e.g. loop.c).  In previous
discussions of GIMPLE etc. I've noted that a desirable characteristic of
language-independent representations would be for this sort of thing to be
represented explicitly.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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