(valid_machine_attribute): Update last change.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 27 Apr 1995 12:56:36 +0000 (08:56 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 27 Apr 1995 12:56:36 +0000 (08:56 -0400)
From-SVN: r9504

gcc/tree.c

index 4ffb53ff9c21032854a9ea8cec20c03ee0abc2b5..1858e3fcf41158621631d5dec9bd953a93baa99f 100644 (file)
@@ -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)