This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix libstdc++ usage of __ctype_b/__ctype_to*
- From: Roland McGrath <roland at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>, Ulrich Drepper <drepper at redhat dot com>, bkoz at redhat dot com, pcarlini at unitus dot it, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 4 Sep 2002 09:31:18 -0700
- Subject: Re: [PATCH] Fix libstdc++ usage of __ctype_b/__ctype_to*
- References: <20020901065254.B7920@devserv.devel.redhat.com> <20020901040933.I7886@dhcp187.sf.frob.com> <20020901095711.C7920@devserv.devel.redhat.com> <20020901102055.A5791@devserv.devel.redhat.com> <3D724B9A.6050908@redhat.com> <20020901145657.E7920@devserv.devel.redhat.com> <3D726A72.2080106@redhat.com> <20020901165440.F7920@devserv.devel.redhat.com> <or4rd6nxk0.fsf@free.redhat.lsd.ic.unicamp.br> <20020904161745.GA1668@nevyn.them.org>
I haven't found anything that actually describes the bug being tested for.
>From looking at the test, I presume it is a crash because the test does
not examine the results of anything it does. If you are happy enough with
explicit version checks and safe presumptions rather than precise empirical
feature/bug tests, then checking for glibc 2.3 is easy enough. That is,
if __GLIBC__ == 2 && __GLIBC_MINOR__ == 2 do the current test. If
__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) then skip the
AC_TRY_RUN test and presume it works.