http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #9 from Rolf Pfister 2011-11-01
07:25:53 UTC ---
Am 31.10.11 21:38, schrieb manu at gcc dot gnu.org:
>
> I sincerely hope you are not doing something important with your code. Relying
No, I dont use this code in my own programs. It w
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #8 from Manuel López-Ibáñez 2011-10-31
20:38:17 UTC ---
(In reply to comment #7)
> I tried this new variant with "gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1"
> With this version it works correctly. Also with avr-gcc this variant
> works corre
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #7 from Rolf Pfister 2011-10-31
19:58:07 UTC ---
I wrote:
> long x=2147483647;
> ulong c;
> for(c=0;c<2147483648UL;c++)
> {
> lcdSendData(x--);
> }
I tried this new variant with "gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1"
Wit
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #6 from Rolf Pfister 2011-10-31
11:01:33 UTC ---
Am 31.10.11 11:18, schrieb manu at gcc dot gnu.org:
>
> http://gcc.gnu.org/wiki/FAQ#signed_overflow
>
Im not really convinced that the reason is the overflow.
Where is the overflow in t
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
Manuel López-Ibáñez changed:
What|Removed |Added
CC||manu at gcc dot gnu.org
--- Comment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #4 from Rolf Pfister 2011-10-31
07:38:01 UTC ---
Am 30.10.11 20:14, schrieb pinskia at gcc dot gnu.org:
> --- Comment #3 from Andrew Pinski 2011-10-30
> 19:14:49 UTC ---
> Signed integer overflow is undefined so this is invalid.
>
I
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #2 from Mikael Pettersson 2011-10-30
17:03:10 UTC ---
(In reply to comment #0)
> int main(void)
> {
> long x=0;
> unsigned long c;
> for(c=0;c<2147483648UL;c++)
>{
> lcdSendData(x++);
> }
You're causing a signed over
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
xunxun changed:
What|Removed |Added
CC||xunxun1982 at gmail dot com
--- Comment #1 from