This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25152] [3.4/4.0 only] no warning from -Wstrict-aliasing for C++ code
- From: "pinskia 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 15:43:23 -0000
- Subject: [Bug c++/25152] [3.4/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 #9 from pinskia at gcc dot gnu dot org 2005-12-08 15:43 -------
(In reply to comment #8)
> 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.
They might not be expecting this. The warning has very few false warnings.
Actually they are broken (in fact they don't know what hit them in 4.0.x). In
fact 4.0.x already uses strict aliasing information more than 3.4.0. I also
have seen 3.4.x use strict aliasing more than 3.3.3 did too.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-12-08 15:43:23
date| |
Summary|[4.0 only] no warning from -|[3.4/4.0 only] no warning
|Wstrict-aliasing for C++ |from -Wstrict-aliasing for
|code |C++ code
Target Milestone|4.1.0 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25152