bug-gnulib
[Top][All Lists]
Advanced

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

Re: coreutils/gnulib - fts.c dangling pointers & gcc 13.1


From: Paul Eggert
Subject: Re: coreutils/gnulib - fts.c dangling pointers & gcc 13.1
Date: Sat, 4 Feb 2023 14:03:53 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 2023-02-04 12:23, Sam James wrote:
I guess it's hard for me to say given I don't know what options allowed it to 
be reproduced and I couldn't hit it.

I assumed it must have been -Wstrict-aliasing=2 or lower which makes it more 
aggressive at the risk of false positives.

But if you reproduced it, then it's useful, I suppose.

I didn't reproduce the warning, since I lack GCC "13.1". I merely looked at the Gnulib source and noticed a couple of places where it was not conforming to the C standard. I have enough knowledge of GCC internals that I think I've changed the code so that it will pacify GCC "13.1".

Although the updated code still doesn't conform, it should work fine on real platforms. (The old code probably works too, for what it's worth.)



reply via email to

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