From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21221 invoked by alias); 16 Dec 2010 15:24:03 -0000 Received: (qmail 21068 invoked by uid 22791); 16 Dec 2010 15:24:02 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Dec 2010 15:23:59 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/46900] [4.6 Regression] 50% slowdown when linking with LTO in a single step X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 16 Dec 2010 15:24:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-12/txt/msg01988.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46900 --- Comment #6 from Tobias Burnus 2010-12-16 15:23:40 UTC --- I think that the files passed to lto1 are the same - but I get different command-line options: a) Two-step compile with "-fexternal-blas -flto -Ofast -march=native" x86_64-unknown-linux-gnu/4.6.0/lto1 -march=k8-sse3 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=k8 b) Single-step compile: x86_64-unknown-linux-gnu/4.6.0/lto1 -quiet -dumpbase ccmRjX1L.ltrans0.o -mtune=generic -march=x86-64 Thus, the "-march=native" somehow gets lost in the single-step compile.