This is the mail archive of the gcc-bugs@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]

[Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one



------- Comment #7 from pinskia at gcc dot gnu dot org  2008-01-18 01:46 -------
(In reply to comment #6)
> Did you mean CFLAGS='-O2 -fwrapv -Wstrict-overflow' or, rather,
> CFLAGS='-O2 -Wstrict-overflow' ?

The latter, you will only get the warning if -fwrapv is off as it warns when
the optimizers are optimizing based on the undefinedness.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34841


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