[Bug 3805] Strict aliasing; punn+dereference

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Thu Oct 23 06:32:27 EDT 2008


http://bugzilla.icculus.org/show_bug.cgi?id=3805





------- Comment #1 from sparky at pld-linux.org  2008-10-23 06:32 EDT -------
Created an attachment (id=1899)
 --> (http://bugzilla.icculus.org/attachment.cgi?id=1899&action=view)
fixes for strict-aliasing

Patch fixes all cases of passing float argument as int, and vice-versa (uses
union instead of punn+dereference). Also replaces -fno-strict-aliasing with
-Wstrict-aliasing in Makefile.
I haven't noticed any problems with strict-aliasing after applying those
changes. Tested only on Linux/PowerPC, other platforms may need some more work.


-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the quake3-bugzilla mailing list