From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21766 invoked by alias); 13 Sep 2011 10:22:49 -0000 Received: (qmail 21755 invoked by uid 22791); 13 Sep 2011 10:22:49 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Sep 2011 10:22:31 +0000 Received: by ywf7 with SMTP id 7so301730ywf.20 for ; Tue, 13 Sep 2011 03:22:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.9.36 with SMTP id 24mr32616391yhs.17.1315909351164; Tue, 13 Sep 2011 03:22:31 -0700 (PDT) Received: by 10.147.113.19 with HTTP; Tue, 13 Sep 2011 03:22:31 -0700 (PDT) Date: Tue, 13 Sep 2011 10:22:00 -0000 Message-ID: Subject: CFLAGS used in libgcc makefile? From: "Amker.Cheng" To: gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00139.txt.bz2 Hi guys, Is it CFLAGS used by libgcc/Makefile.in to build libgcc.a? It seems if I configure gcc with CFLAGS="-O0 -g " environment variable, libgcc is also compiled with -O0 option. I'm wondering why do not use CFLAGS_FOR_TARGET here(CFLAGS->INTERNAL_CFLAGS->gcc_compile_bare->gcc_compile). Please help, thanks. -- Best Regards.