This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25152] [4.0 only] no warning from -Wstrict-aliasing for C++ code
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2005 12:30:38 -0000
- Subject: [Bug c++/25152] [4.0 only] no warning from -Wstrict-aliasing for C++ code
- References: <bug-25152-11785@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from jakub at gcc dot gnu dot org 2005-12-08 12:30 -------
-Wstrict-aliasing backport has been committed today to gcc-4_1-branch:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108226
For 4.0, it is IMHO a bad idea to backport this, there are tons of programs
built with -Werror and if we suddenly start issuing a huge amount of new
warnings (and this warning has sometimes many false positives), we'd force
people to change packages a lot. People are used to do this kind of things
when porting to a newer major GCC version, but e.g. when upgrading from
x.y.z to x.y.z+1 it is not expected.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1 only] no warning |[4.0 only] no warning from -
|from -Wstrict-aliasing for |Wstrict-aliasing for C++
|C++ code |code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25152