This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14750] type-punned pointer causes bad code
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2004 04:55:00 -0000
- Subject: [Bug c/14750] type-punned pointer causes bad code
- References: <20040327035806.14750.lindsayd@cisco.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-03-29 04:54 -------
The documentation of -Wstrict-aliasing references -fstrict-aliasing
which states what exactly is wrong here. However, if someone is
interested in cleaning something up: the last paragraph of the docs
of -fstrict-aliasing should really go into the internals manual,
not invoke.texi:
--------------
Every language that wishes to perform language-specific alias analysis
should define a function that computes, given an @code{tree}
node, an alias set for the node. Nodes in different alias sets are not
allowed to alias. For an example, see the C front-end function
@code{c_get_alias_set}.
--------------
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14750