[Bug c/28073] Type-punned pointer passed as function parameter generates bad assembly sequence
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jun 19 21:08:00 GMT 2006
------- Comment #5 from rguenth at gcc dot gnu dot org 2006-06-19 21:04 -------
Created an attachment (id=11706)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11706&action=view)
warn for bad casts hiding type-punning
At suse we used the attached patch to teach packagers not "fix" strict aliasing
warnings by introducing a (void *) cast inbetween. Sort of a compromise
between too much false positives and catching all evil use.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28073
More information about the Gcc-bugs
mailing list