This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/18418] New: GCC 3.4.3 builds worse code than GCC 3.3.4 using template expressions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]