From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14242 invoked by alias); 24 Feb 2012 22:02:33 -0000 Received: (qmail 14234 invoked by uid 22791); 24 Feb 2012 22:02:32 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp01.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.123) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Feb 2012 22:02:18 +0000 Received: from treguer.localnet ([90.32.130.28]) by mwinf5d02 with ME id dy2H1i0080cuJLA03y2Hnk; Fri, 24 Feb 2012 23:02:17 +0100 From: "Yann E. MORIN" To: crossgcc@sourceware.org Subject: Re: ct-ng seems to disable all optimization by default Date: Fri, 24 Feb 2012 22:02:00 -0000 User-Agent: KMail/1.13.5 (Linux/3.2.6-treguer; KDE/4.4.5; x86_64; ; ) Cc: Johannes Stezenbach References: <20120216144551.GA2416@sig21.net> In-Reply-To: <20120216144551.GA2416@sig21.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202242302.16695.yann.morin.1998@free.fr> 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/msg00089.txt.bz2 Johannes, All, On Thursday 16 February 2012 15:45:52 Johannes Stezenbach wrote: > 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. Yes, what is provided in the menuconfig should be added in a way that it overrides the computed values. In this case, the additional CFLAGS should be added after the internally-computed ones, yes. I'll look at it this WE (although that's gonna be a short one, anti-ACTA demonstration sat. PM). Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq