bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Grep-devel] avoiding new warnings


From: Paul Eggert
Subject: Re: [Grep-devel] avoiding new warnings
Date: Sun, 21 May 2017 13:10:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

Jim Meyering wrote:
two of the three instances it flagged in grep
were odd enough that I feel they benefit from the added attention

Anybody reading those two instances of the code would already know what's going on; it's pretty obvious, it's already commented, and to my mind the extra attention gets in the way more than it helps.

I agree that it would be better to advise the compiler directly about the optimization that's needed there, if GCC etc. ever get around to doing that. (I'm pretty sure the optimization advice is still needed, by the way: static compilers typically don't have enough information, and even dynamic ones would have troubles with those two.)



reply via email to

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