aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>1999-12-27 11:35:07 +0000
committerMartin v. Löwis <loewis@gcc.gnu.org>1999-12-27 11:35:07 +0000
commit71145810908ff31ea6c2b98c0964e661d5b91c66 (patch)
tree2f183c0fbcac83ef2c6b4fb82a9f59c013ef18ae /gcc/fold-const.c
parentc547c37183571e9556c4f16a73f8537a73c79251 (diff)
downloadgcc-71145810908ff31ea6c2b98c0964e661d5b91c66.zip
gcc-71145810908ff31ea6c2b98c0964e661d5b91c66.tar.gz
gcc-71145810908ff31ea6c2b98c0964e661d5b91c66.tar.bz2
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 4eaf4ce..a59d622 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -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)));