aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-04-27 08:56:36 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-04-27 08:56:36 -0400
commit3c013dd5b93fff8075896a6b444696d589bb19d7 (patch)
tree46228a43778cc54434fe78a1162fcbe2579d1d01 /gcc
parentc276186e8e059cbed3066ea0475d36e1a8c5eebf (diff)
downloadgcc-3c013dd5b93fff8075896a6b444696d589bb19d7.zip
gcc-3c013dd5b93fff8075896a6b444696d589bb19d7.tar.gz
gcc-3c013dd5b93fff8075896a6b444696d589bb19d7.tar.bz2
(valid_machine_attribute): Update last change.
From-SVN: r9504
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 4ffb53f..1858e3f 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -2944,9 +2944,9 @@ valid_machine_attribute (attr_name, attr_args, decl, type)
if (decl != 0
&& VALID_MACHINE_DECL_ATTRIBUTE (decl, decl_attr_list, attr_name))
{
- if (! attribute_in_list (new_attr, decl_attr_list))
+ if (! attribute_in_list (attr_name, decl_attr_list))
{
- decl_attr_list = tree_cons (NULL_TREE, new_attr, decl_attr_list);
+ decl_attr_list = tree_cons (NULL_TREE, attr_name, decl_attr_list);
/* Declarations are unique, build_decl_attribute_variant modifies
the existing decl in situ. */
@@ -2960,9 +2960,9 @@ valid_machine_attribute (attr_name, attr_args, decl, type)
#ifdef VALID_MACHINE_TYPE_ATTRIBUTE
if (VALID_MACHINE_TYPE_ATTRIBUTE (type, type_attr_list, attr_name))
{
- if (! attribute_in_list (new_attr, type_attr_list))
+ if (! attribute_in_list (attr_name, type_attr_list))
{
- type_attr_list = tree_cons (NULL_TREE, new_attr, type_attr_list);
+ type_attr_list = tree_cons (NULL_TREE, attr_name, type_attr_list);
type = build_type_attribute_variant (type, type_attr_list);
}
if (decl != 0)