Re: gcc 3.3 / i386 / -O2 question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Korn wrote:

  However as I mentioned, the behaviour of unsigned integers in overflow
conditions IS well defined, and so if the compiler produced code that behaved
differently at -O0 and -O2 when you took that example code and changed "int" to
"unsigned int" everywhere, that *would* be a genuine compiler bug, and one that
would need fixing.

Indeed! In fact I would not even use the term overflow in conjunction with unsigned, the unsigned semantics is modular, and there is no overlow :-)


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux