Commit 71145810 by Martin v. Löwis Committed by Martin v. Löwis

fold-const.c (operand_equal_p): Use memcmp to compare string constants.

	* fold-const.c (operand_equal_p): Use memcmp to compare string
	constants.

From-SVN: r31097
parent c547c371
1999-12-23 Martin v. Lwis <loewis@informatik.hu-berlin.de>
* fold-const.c (operand_equal_p): Use memcmp to compare string
constants.
Suggested by D. J. Bernstein
1999-12-17 Jakub Jelinek <jakub@redhat.com>
* config/h8300/h8300.h (TARGET_H8300H, TARGET_H8300S): Make sure
......
......@@ -2250,7 +2250,7 @@ operand_equal_p (arg0, arg1, only_const)
case STRING_CST:
return (TREE_STRING_LENGTH (arg0) == TREE_STRING_LENGTH (arg1)
&& ! strncmp (TREE_STRING_POINTER (arg0),
&& ! memcmp (TREE_STRING_POINTER (arg0),
TREE_STRING_POINTER (arg1),
TREE_STRING_LENGTH (arg0)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment