[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] Stop using legacy -ffat-lto-objects flag
From: |
Andrea Corallo |
Subject: |
Re: [PATCH 1/1] Stop using legacy -ffat-lto-objects flag |
Date: |
Mon, 09 Nov 2020 08:57:51 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Evan Klitzke <evan@eklitzke.org>
>> Date: Sun, 08 Nov 2020 12:05:28 -0800
>>
>> 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.
Andrea