This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [libiberty patch]: Change strncmp test in the way it uses mmap



Would it be possible to have the test try both mmap calls if possible,
and use whichever works?

> (b) I could argue that basing a failing mmap for the presence of
> strncmp is not the correct way to determine whether strncmp is
> indeed in a system.

The problem is that we must also test for broken strncmps and replace
those too.  Without a working mmap, we can't verify that strncmp works
properly.  The conservative approach is to use libiberty's strncmp if
we can't tell for sure.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]