[Bug c/14750] type-punned pointer causes bad code

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Mon Mar 29 04:55:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list