------- Comment #2 from rakdver at gcc dot gnu dot org 2007-02-08 09:38 -------
> Note that the warning is
> emitted because we change n -= 2 to n += 4294967294 (oops).
> this is because 2 is easily negatable and the canonical form in this case
> is an addition. While we can fix that,
No, you cannot -- loop optimizer would represent n-=2 this way in any case.
> the loop optimizer should be fixed
> as well to note that this unsigned addition is just a subtraction of two.
Loop optimizers are aware of this on most places.
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rakdver at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2007-02-08 09:34:14 |2007-02-08 09:38:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30730