c/10339
Eric Botcazou
ebotcazou@libertysurf.fr
Tue Apr 8 06:46:00 GMT 2003
The following reply was made to PR optimization/10339; it has been noted by GNATS.
From: Eric Botcazou <ebotcazou@libertysurf.fr>
To: Wolfgang Bangerth <bangerth@ices.utexas.edu>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/10339
Date: Tue, 8 Apr 2003 08:40:04 +0200
> The x86 backend doesn't seem to use memcmp in this case (maybe it does for
> different values of string lengths, etc, but I haven't checked that).
Actually, it does the transformation strncmp->memcmp but the builtin memcmp
has the nice property to stop on the first NULL character ("repz cmpsb").
Anyway, this is not a Sparc-specific problem.
--
Eric Botcazou
More information about the Gcc-prs
mailing list