From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28020 invoked by alias); 10 Nov 2004 13:52:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 27985 invoked by uid 48); 10 Nov 2004 13:52:09 -0000 Date: Wed, 10 Nov 2004 13:52:00 -0000 From: "ayqazi at yahoo dot co dot uk" To: gcc-bugs@gcc.gnu.org Message-ID: <20041110135203.18418.ayqazi@yahoo.co.uk> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/18418] New: GCC 3.4.3 builds worse code than GCC 3.3.4 using template expressions X-Bugzilla-Reason: CC X-SW-Source: 2004-11/txt/msg01245.txt.bz2 List-Id: 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