This is the mail archive of the gcc@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] | |
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 Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |