aboutsummaryrefslogtreecommitdiff
path: root/gcc/genattrtab.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-03-14 05:07:15 +0000
committerRichard Stallman <rms@gnu.org>1992-03-14 05:07:15 +0000
commitd45cf215ee7cefef0044a6bd3ee1c2c7b2466039 (patch)
treeb51ea120d470bb8953e46b0885064feeb114b3a5 /gcc/genattrtab.c
parent23b2ce53390902084893cd7eb735b2332c927b67 (diff)
downloadgcc-d45cf215ee7cefef0044a6bd3ee1c2c7b2466039.zip
gcc-d45cf215ee7cefef0044a6bd3ee1c2c7b2466039.tar.gz
gcc-d45cf215ee7cefef0044a6bd3ee1c2c7b2466039.tar.bz2
*** empty log message ***
From-SVN: r472
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r--gcc/genattrtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index 40894ad..c07c26b 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -586,7 +586,7 @@ attr_string (str, len)
/* Search the table for the string. */
for (h = attr_hash_table[hashcode % RTL_HASH_SIZE]; h; h = h->next)
if (h->hashcode == -hashcode
- && !strcmp (h->u.str, str))
+ && !strncmp (h->u.str, str, len))
return h->u.str; /* <-- return if found. */
/* Not found; create a permanent copy and add it to the hash table. */
@@ -2191,7 +2191,7 @@ simplify_test_exp (exp, insn_code, insn_index)
/* If either side is an IOR and we have (eq_attr "alternative" ..")
present on both sides, apply the distributive law since this will
- yield simplications. */
+ yield simplifications. */
if ((GET_CODE (left) == IOR || GET_CODE (right) == IOR)
&& compute_alternative_mask (left, IOR)
&& compute_alternative_mask (right, IOR))