public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18418] New: GCC 3.4.3 builds worse code than GCC 3.3.4 using template expressions
@ 2004-11-10 13:52 ayqazi at yahoo dot co dot uk
  2004-11-10 14:07 ` [Bug c++/18418] [3.4 only] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: ayqazi at yahoo dot co dot uk @ 2004-11-10 13:52 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-02-28  9:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-18418-2716@http.gcc.gnu.org/bugzilla/>
2005-10-07  3:32 ` [Bug c++/18418] [3.4 only] GCC 3.4.3 builds worse code than GCC 3.3.4 using template expressions gdr at gcc dot gnu dot org
2006-02-28  9:45 ` gdr at gcc dot gnu dot org
2004-11-10 13:52 [Bug c++/18418] New: " ayqazi at yahoo dot co dot uk
2004-11-10 14:07 ` [Bug c++/18418] [3.4 only] " pinskia at gcc dot gnu dot org
2004-11-10 18:52 ` giovannibajo at libero dot it
2005-02-10  0:11 ` bangerth at dealii dot org
2005-02-10 20:48 ` ayqazi at yahoo dot co dot uk
2005-05-19 17:38 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).