]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(decl_attributes): If TREE_TYPE for the DECL is updated,
authorRichard Earnshaw <erich@gnu.org>
Wed, 6 Jul 1994 09:07:10 +0000 (09:07 +0000)
committerRichard Earnshaw <erich@gnu.org>
Wed, 6 Jul 1994 09:07:10 +0000 (09:07 +0000)
then update TYPE as well.

From-SVN: r7662

gcc/c-common.c

index 920c73d26d991f7cc48e27813d879d1f9cf119fd..f18c270b27942feb26cd4b3173e280974c4e1301 100644 (file)
@@ -232,7 +232,7 @@ decl_attributes (decl, attributes)
          TREE_THIS_VOLATILE (decl) = 1;
        else if (TREE_CODE (type) == POINTER_TYPE
                 && TREE_CODE (TREE_TYPE (type)) == FUNCTION_TYPE)
-         TREE_TYPE (decl)
+         TREE_TYPE (decl) = type 
            = build_pointer_type
              (build_type_variant (TREE_TYPE (type),
                                   TREE_READONLY (TREE_TYPE (type)), 1));
@@ -246,7 +246,7 @@ decl_attributes (decl, attributes)
          TREE_READONLY (decl) = 1;
        else if (TREE_CODE (type) == POINTER_TYPE
                 && TREE_CODE (TREE_TYPE (type)) == FUNCTION_TYPE)
-         TREE_TYPE (decl)
+         TREE_TYPE (decl) = type
            = build_pointer_type
              (build_type_variant (TREE_TYPE (type), 1,
                                   TREE_THIS_VOLATILE (TREE_TYPE (type))));