[PATCH] PR 10339: Remove unsafe memcmp optimizations

Richard Henderson rth@redhat.com
Thu Apr 17 01:23:00 GMT 2003


On Wed, Apr 16, 2003 at 06:22:37PM -0600, Roger Sayle wrote:
> 	* builtins.c (expand_builtin_strcmp): Remove unsafe transformation
> 	of strcmp with one string constant operand into a memcmp call.
> 	(expand_builtin_strncmp): Likewise, for strncmp into memcmp.
> 	* gcc.c-torture/execute/string-opt-8.c: Remove cmpstrsi tests.

Ok.


r~



More information about the Gcc-patches mailing list