aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1995-04-28 01:11:28 +0000
committerDoug Evans <dje@gnu.org>1995-04-28 01:11:28 +0000
commit88a781e84cdb96003e34195199488855af79c278 (patch)
tree5a5cc2809985c4d437ca49ef1746b30f93c24d3f /gcc
parentd56d506a929ba73dcdb2dcae48e70abacac78f12 (diff)
downloadgcc-88a781e84cdb96003e34195199488855af79c278.zip
gcc-88a781e84cdb96003e34195199488855af79c278.tar.gz
gcc-88a781e84cdb96003e34195199488855af79c278.tar.bz2
(common_type): Call lookup_attribute instead of value_member.
From-SVN: r9524
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-typeck.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 1873613..30d6679 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -209,14 +209,15 @@ common_type (t1, t2)
attributes = a2;
else
{
- /* Pick the longest list, and hang on the other
- list. */
+ /* Pick the longest list, and hang on the other list. */
+ /* ??? For the moment we punt on the issue of attrs with args. */
if (list_length (a1) < list_length (a2))
attributes = a2, a2 = a1;
for (; a2; a2 = TREE_CHAIN (a2))
- if (!value_member (attributes, a2))
+ if (lookup_attribute (IDENTIFIER_POINTER (TREE_PURPOSE (a2)),
+ attributes) == NULL_TREE)
{
a1 = copy_node (a2);
TREE_CHAIN (a1) = attributes;