[Bug c++/18418] New: GCC 3.4.3 builds worse code than GCC 3.3.4 using template expressions
ayqazi at yahoo dot co dot uk
gcc-bugzilla@gcc.gnu.org
Wed Nov 10 13:52:00 GMT 2004
Hi,
Using a template expressions 3D maths library I'm developing, I have discovered
that GCC 3.4.3 builds worse code than GCC 3.3.4 (and predecessors.)
I have attached a test case file using a part of the template expression library
that highlights this case.
Regardless of which -march flag I used to compile it (i386, etc.) and regardless
of the -msse flag being present or not, the asm output was clearly longer by
about 20% in the gcc 3.4.3 compiled code.
p.s. it will work if an optimisation flag is present (I have verified it.)
Without an optimisation flag, GCC doesn't generate proper code (this bug has
already been reported.)
--
Summary: GCC 3.4.3 builds worse code than GCC 3.3.4 using
template expressions
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ayqazi at yahoo dot co dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-linux
GCC host triplet: i686-linux
GCC target triplet: i686-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18418
More information about the Gcc-bugs
mailing list