bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#72842: Compile error due to lto warning on Arch Linux -Werror=ma


From: Pádraig Brady
Subject: Re: bug#72842: Compile error due to lto warning on Arch Linux -Werror=maybe-uninitialized
Date: Wed, 28 Aug 2024 12:37:15 +0100
User-agent: Mozilla Thunderbird Beta

On 27/08/2024 22:34, Paul Eggert wrote:
I'm not seeing that false alarm when building coreutils v9.5 on Ubuntu
24.04 LTS with "./configure --enable-gcc-warnings CC=gcc-14".

What GCC version are you using? If it's not GCC 14, try upgrading. I'm
using gcc-14 (Ubuntu 14-20240412-0ubuntu1) 14.0.1 20240412
(experimental) [master r14-9935-g67e1433a94f].

I think LTO is key here, as GCC has more context then to produce warnings.
With `-march=native -O3 -flto` on GCC 14.2.1 I see,
2 false warnings in gnulib (patch attached).
1 correct warning in coreutils (patch attached).

Marking this as done.
I'll apply the patches later today.

cheers,
Pádraig.

Attachment: gnulib-lto.patch
Description: Text Data

Attachment: coreutils-xdectoint-lto.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]