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] | |
So i would advise anyone arguing against turning on -fwrapv simply because it doesn't seem to hurt us at O2.
And i'll again point out that the exact opposite is the default in every other compiler i'm aware of.
XLC at O2 has qstrict_induction on by default (the equivalent), and warns the user when it sees a loop where it's making the assumption[1]
The XLC people told me since they turned this on in 1998, they have had one real piece of code where it actually mattered, and that was a char induction variable.
ICC does the same, though i don't think it bothers to warn.
Open64 does the same, but no warning.
Not sure about Sun CC, but i'd be very surprised if they did it.
Personally, i only care about wrapping for induction variables. If you guys want to leave regular variables to do whatever, fine.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |