bug-gnulib
[Top][All Lists]
Advanced

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

Re: undefined-behavior obstack.c:139


From: Paul Eggert
Subject: Re: undefined-behavior obstack.c:139
Date: Sun, 17 Dec 2023 00:40:31 -0800
User-agent: Mozilla Thunderbird

On 2023-12-16 13:09, Bruno Haible wrote:
It's like with other changes we saw in the past:
   - strict aliasing rules - forbid to cast (int**) to (char**) etc.
   - signed integer overflow.
What was once a common style is now outlawed.

It's not like those changes, because those other changes were put in for good reasons - to improve performance and/or catch real bugs. This change, in practice, makes performance worse, and it doesn't catch real bugs. It's pure pedantry.

The bad citizen here is clang, not Gnulib or Coreutils. Or maybe it's the C standard; it doesn't matter. Clang needn't (and doesn't) complain about every violation of the C standard, and it should not be complaining about this one.



reply via email to

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