From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31988 invoked by alias); 16 Feb 2012 14:46:19 -0000 Received: (qmail 31973 invoked by uid 22791); 16 Feb 2012 14:46:16 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bar.sig21.net (HELO bar.sig21.net) (80.81.252.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Feb 2012 14:46:00 +0000 Received: from p5099b351.dip0.t-ipconnect.de ([80.153.179.81] helo=zzz.local) by bar.sig21.net with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.69) (envelope-from ) id 1Ry2an-0006mF-7y for crossgcc@sourceware.org; Thu, 16 Feb 2012 15:45:58 +0100 Received: from js by zzz.local with local (Exim 4.77) (envelope-from ) id 1Ry2am-0000dq-2D for crossgcc@sourceware.org; Thu, 16 Feb 2012 15:45:52 +0100 Date: Thu, 16 Feb 2012 14:46:00 -0000 From: Johannes Stezenbach To: crossgcc@sourceware.org Subject: ct-ng seems to disable all optimization by default Message-ID: <20120216144551.GA2416@sig21.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-21-Score: -2.9 (--) X-Spam-21-Report: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9 autolearn=ham X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00074.txt.bz2 Hi, I've been looking through the build.log and found that most parts of the toolchain are build without -O2 or similar. This seems to be caused by ct-ng build scripts passing CFLAGS unconditionally to ./configure, which causes it to _replace_ any default CFLAGS with the given ones -- in my case (with CT_USE_PIPES=y) " -pipe". I guess the easy solution is CT_EXTRA_FLAGS_FOR_HOST="-O2" and CT_TARGET_CFLAGS="-Os" (or similar). To me this behaviour is unexpected because CT_EXTRA_FLAGS_FOR_HOST help talks about "additional" CFLAGS. Johannes -- For unsubscribe information see http://sourceware.org/lists.html#faq