This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18418] New: GCC 3.4.3 builds worse code than GCC 3.3.4 using template expressions
- From: "ayqazi at yahoo dot co dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2004 13:52:09 -0000
- Subject: [Bug c++/18418] New: GCC 3.4.3 builds worse code than GCC 3.3.4 using template expressions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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