diff options
author | Nick Clifton <nickc@gcc.gnu.org> | 2000-02-23 19:08:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2000-02-23 19:08:51 +0000 |
commit | 1cb8d58accf67dcaa8f9bdd07dc0467964d3fd4e (patch) | |
tree | 2d45c0e867cce2d22d25c29a8e552176d63eb830 /gcc | |
parent | 211365c22c6f76bb6784719ddf4c4a4c422422c9 (diff) | |
download | gcc-1cb8d58accf67dcaa8f9bdd07dc0467964d3fd4e.zip gcc-1cb8d58accf67dcaa8f9bdd07dc0467964d3fd4e.tar.gz gcc-1cb8d58accf67dcaa8f9bdd07dc0467964d3fd4e.tar.bz2 |
(arm_comp_type_attributes): Simply and comment tests on type attributes.
From-SVN: r32120
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/arm/arm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index f50d167..4b288ca 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -1641,23 +1641,23 @@ arm_comp_type_attributes (type1, type2) tree type1; tree type2; { - tree l1, l2, s1, s2; + int l1, l2, s1, s2; /* Check for mismatch of non-default calling convention. */ if (TREE_CODE (type1) != FUNCTION_TYPE) return 1; /* Check for mismatched call attributes. */ - l1 = lookup_attribute ("long_call", TYPE_ATTRIBUTES (type1)); - l2 = lookup_attribute ("long_call", TYPE_ATTRIBUTES (type2)); - s1 = lookup_attribute ("short_call", TYPE_ATTRIBUTES (type1)); - s2 = lookup_attribute ("short_call", TYPE_ATTRIBUTES (type2)); + l1 = lookup_attribute ("long_call", TYPE_ATTRIBUTES (type1)) != NULL; + l2 = lookup_attribute ("long_call", TYPE_ATTRIBUTES (type2)) != NULL; + s1 = lookup_attribute ("short_call", TYPE_ATTRIBUTES (type1)) != NULL; + s2 = lookup_attribute ("short_call", TYPE_ATTRIBUTES (type2)) != NULL; /* Only bother to check if an attribute is defined. */ if (l1 | l2 | s1 | s2) { /* If one type has an attribute, the other must have the same attribute. */ - if ((!l1 != !l2) || (!s1 != !s2)) + if ((l1 != l2) || (s1 != s2)) return 0; /* Disallow mixed attributes. */ |