From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tIEiKMGHkGAKUAAAWB0awg (envelope-from ) for ; Mon, 03 May 2021 19:31:13 -0400 Received: by simark.ca (Postfix, from userid 112) id 9640F1F11C; Mon, 3 May 2021 19:31:13 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D21031E54D for ; Mon, 3 May 2021 19:31:09 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 05E883946C34; Mon, 3 May 2021 23:31:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05E883946C34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1620084669; bh=Bi6dzQulFrmnvhqu9fJEunONhjraFbjLkgpQRn2S3K0=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=GBNhGG50+3+beEJJuGy3k/gpVTQZ0Pf7HhA0TDq68L8+H6SBXTDshyPHeS6cNSjN6 Xl8nG8tHeNLKm7dvSxoQsA03gKJYGBRErcgwUpo1WvRJP+8gSYItPDU7+wRX4TNBHf 2OmcpLzPF+Y2bKtxAzIhsKnbEkfeNtZjZD9HITyI= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 1BFA5388A404; Mon, 3 May 2021 23:31:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1BFA5388A404 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 143NUsMf032023 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 3 May 2021 19:30:59 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 143NUsMf032023 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id B7C731E54D; Mon, 3 May 2021 19:30:53 -0400 (EDT) Subject: Re: RFC: Changing AC_PROG_CC to AC_PROG_CC_C99 in top level configure To: Alan Modra References: <8c1b0ed9-e6f3-9c22-45c5-c2680a2a4830@polymtl.ca> <15701c5f-5653-f0e4-990a-43094d18a702@gmail.com> <20210503062825.GG22624@bubble.grove.modra.org> <20210503215149.GI22624@bubble.grove.modra.org> Message-ID: <518eccbc-f312-cd27-15d7-5b33e92749b0@polymtl.ca> Date: Mon, 3 May 2021 19:30:53 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210503215149.GI22624@bubble.grove.modra.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Mon, 3 May 2021 23:30:54 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Cc: Jeff Law , gcc-patches@gcc.gnu.org, Nick Clifton , gdb-patches@sourceware.org, Binutils Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 2021-05-03 5:51 p.m., Alan Modra wrote: > I wasn't talking about running configure, I was talking about running > make. For example, you configure and make binutils as usual, then > after making a change to ld/ files, run make in the ld build dir. I > don't tend to do that myself but I do run "make check" sometimes in a > subdir expecting to get the same results in that subdir as if "make > check" was run from the top level. Ah yeah, that works just fine. During my edit-build-cycle, I typically only "make" in gdb/, or whatever I'm working on at the moment. It saves some precious milliseconds! > But I should have just tried it myself rather than asking. CC, CPP > and others are inherited from the top level and appear with -std=gnu99 > in the subdir Makefiles. So it seems all the AC_PROG_CC in subdir > configure.ac can stay as they are. Yes, the top-level passes CC=... and others when it configures the subdirectories. The subdirectories remember how they were configures (in config.status), so that even if a "make" in the subdirectory ends up re-running configure (because configure changed), the CC value will be remembered. Simon