[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strchrnul speed
From: |
Bruno Haible |
Subject: |
Re: strchrnul speed |
Date: |
Tue, 29 Apr 2008 00:06:41 +0200 |
User-agent: |
KMail/1.5.4 |
Ben Pfaff wrote:
> This approach will cause false-positive warnings under memory
> debuggers such as Valgrind.
Good point.
> However, anyone who notices such a
> warning should be able to spot from the comments in the function
> that it is still correct code given the assumption you have
> above, so I don't think that is a big deal.
Why should a developer who uses gnulib have to write valgrind suppression files
to work around ISO C99 violations in gnulib? We can at least provide a
strchrnul.valgrind file, like the 'malloca' module already does. Then this
developer can use the option
--suppressions=$(srcdir)/strchrnul.valgrind
in his Makefile. Several --suppressions options can be given; gnulib-tool does
not need to combine the various suppressions files.
Bruno
- symbol namespace collisions (was: Re: memrchr speed), (continued)
Re: memchr2 speed, gcc, Bruno Haible, 2008/04/26
Re: strchrnul speed, Eric Blake, 2008/04/28
Re: strchrnul speed, Eric Blake, 2008/04/28