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: [PATCH 1/1] Stop using legacy -ffat-lto-objects flag Date: Mon, 09 Nov 2020 17:59:02 +0200 Message-ID: <83v9ee4j3t.fsf@gnu.org> References: <878sbby5pz.fsf@eklitzke.org> <838sbb5i3a.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16764"; mail-complaints-to="usenet@ciao.gmane.io" Cc: evan@eklitzke.org, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 09 17:00:09 2020 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 1kc9aT-0004DE-DL for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Nov 2020 17:00:09 +0100 Original-Received: from localhost ([::1]:50540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc9aS-0006jL-FW for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Nov 2020 11:00:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kc9ZI-0005OV-Ii for emacs-devel@gnu.org; Mon, 09 Nov 2020 10:58:56 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45685) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc9ZI-0007sn-6C; Mon, 09 Nov 2020 10:58:56 -0500 Original-Received: from [176.228.60.248] (port=4676 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kc9ZG-0005P0-9h; Mon, 09 Nov 2020 10:58:55 -0500 In-Reply-To: (message from Andrea Corallo on Mon, 09 Nov 2020 08:57:51 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:258948 Archived-At: > From: Andrea Corallo > Cc: Evan Klitzke , emacs-devel@gnu.org > Date: Mon, 09 Nov 2020 08:57:51 +0000 > > >> Currently when Emacs is configured using the > >> --enable-link-time-optimization configure flag, the build will use the > >> -ffat-lto-objects flag if the host compiler is GCC (but not Clang). > >> According to the comments in configure.ac this is to work around an > >> issue with LTO builds in GCC 4.9.0. This flag makes builds take much > >> longer (and produces much larger object files), so I suggest removing it > >> as GCC 4.x is quite old at this point and doesn't have great LTO support > >> anyway. > > > > I think this is too soon: fencepost.gnu.org, which runs Trisquel LTS, > > still has GCC 4.8.4. > > > > Thanks. > > Couldn't we check and decide based on the GCC version? IIUC we already > do something like this using gl_GCC_VERSION_IFELSE. That'd be fine with me, thanks.