This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
aliasing
- To: gcc@gcc.gnu.org
- Subject: aliasing
- From: Jason Moxham <jlm@maths.soton.ac.uk>
- Date: Sat, 21 Aug 1999 17:22:22 +0100 (BST)
I have a C++ ( really a C prog with a couple of overloaded fn's )
program which I'm fairly sure breaks the strict aliasing rules of
Gcc-2.95.1
Where can find a copy of what these rules are , so I can fix my code ?
For a temporary fix I added -fno-strict-aliasing to the options and
expected a performance drop . However the program now runs 1% faster ???
(I assure you 1% is not a trival amount)
Using Slackware 3.9 + gcc 2.95.1 on AMD K6(x86)
options -O3 -fno-exceptions -funroll-loops -march=k6
-fomit-frame-pointer -ffast-math ... etc
I can send
source(100K) + exe's(50K) + data etc..
Jason Moxham
jlm@maths.soton.ac.uk