This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jan 2008 00:22:15 -0000
- Subject: [Bug c/34841] 'make check' of libsndfile-1.0.17 fails with gcc-4.2.2 -O2 optimization, OK with -O1 one
- References: <bug-34841-13529@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from manu at gcc dot gnu dot org 2008-01-19 00:22 -------
There is a bug (PR32102) where -Wall after -Wstrict-overflow resets the latter
to its default value. I think this is why you didn't get the warning. Removing
-Wall or moving -Wstrict-overflow=5 after it should generate the warning.
Now, why the warnings from -Wsign-comparison appear and disappear? That I don't
know but I don't have more free time to investigate this. I hope someone can
look into it or, at least, find a reduced testcase.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2008-01-18 14:49:26 |2008-01-19 00:22:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34841