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]

Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."


Just to address the other compiler issue

No, they will work on other compilers, since 'configure' won't use -O2 with those other compilers.

icc defaults to -O2 without any options, so unless you are passing -O0, it will enable this.


Unless you know of some real-world C compiler that breaks wrapv semantics even compiling without optimization? If so, I'd like to hear the details.

Sure. All of them,AFAIK, because they make the assumptions during constant folding, and they all still constant fold at -O0. It just so happens that it tends to affect a lot smaller number of programs, because it essentially ends up being a very very local optimization. But it's still going to break some programs, even at -O0.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]