From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Enabling native compilation by default when libgccjit is present Date: Wed, 08 Dec 2021 15:21:58 +0200 Message-ID: <83r1anw7t5.fsf@gnu.org> References: <87czmdqpv9.fsf@web.de> <83h7bo7rvz.fsf@gnu.org> <87bl1tjage.fsf@web.de> <877dchj9cu.fsf@web.de> <83ee6ozfb0.fsf@gnu.org> <87tufjqzo1.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39194"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 08 14:23:19 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muwuk-000A1G-QQ for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 14:23:18 +0100 Original-Received: from localhost ([::1]:48358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muwui-0006o7-BI for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 08:23:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muwtl-0004n3-Fu for emacs-devel@gnu.org; Wed, 08 Dec 2021 08:22:17 -0500 Original-Received: from [2001:470:142:3::e] (port=57686 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muwtk-0004Wk-Jq; Wed, 08 Dec 2021 08:22:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TJ8mSaQr/aYOXbsVEwgUplVfbbJlA+s0P4klvWu4aTk=; b=D8ZQgcFTfcEX 2s5M+n14UGR5Cr77YHnuGZZKQQO9I5Qh40WhjZRNhx6NvrK+fgRMJ0Gztz5UBiEjlrp7qubPc+XUe KhbPFPb0hNd7kRIMRUQq/eYs7RJY8wMA0aBdlvDwaixpXNtji0xWkv0dkz6CWE9AYKpZX7rKvkOwJ pjkqlVDsJPAMGvpmhQVl1ACpxjdokbNx481+/dnFqICWUOlsJjPW80UcRVQq7OyrSq6jwp8DjsQqv C22qIKei6m+3/UQMi2wDqKMf2A5Z2wCaYEpzueLuuTyY7eYqt/+rUNp8Tcy2yX6MAZXkKwAEMYSKK ASqdptUMtwMIuDwb1rK5Sg==; Original-Received: from [87.69.77.57] (port=2376 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muwtk-00058j-Cz; Wed, 08 Dec 2021 08:22:16 -0500 In-Reply-To: <87tufjqzo1.fsf@igel.home> (message from Andreas Schwab on Wed, 08 Dec 2021 09:16:46 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:281347 Archived-At: > From: Andreas Schwab > Cc: Michael Heerdegen , emacs-devel@gnu.org > Date: Wed, 08 Dec 2021 09:16:46 +0100 > > On Dez 07 2021, Eli Zaretskii wrote: > > > You get additional warnings because each of the *.el files is compiled > > in a separate Emacs process, which starts from a clean state. By > > contrast, it may be the case that your code says something like > > > > (require 'foo) > > .... > > (require 'bar) > > > > and 'bar' uses some stuff in 'foo' under the assumption that 'foo' is > > always loaded before 'bar'. Since native-compilation will compile > > 'foo' and 'bar' separately, it will emit warnings. > > This is in no way dependent on native compilation, though. Not directly, no. But in most cases, if you byte-compile or load a file that has these two require's, the require'd files will not be compiled, definitely not in separate sessions. Whereas with JIT native-compilation, both of these do happen.