From: Stan Cox Date: Mon, 6 May 1996 20:58:44 +0000 (+0000) Subject: (decl_attributes): Chain multiple attributes correctly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17c1a44f7551462e48911ff83394ea9f828f0d00;p=gcc.git (decl_attributes): Chain multiple attributes correctly. From-SVN: r11942 --- diff --git a/gcc/c-common.c b/gcc/c-common.c index 8a834dd072f..3f6b28e36d8 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -322,6 +322,8 @@ decl_attributes (node, attributes, prefix_attributes) if (! valid_machine_attribute (name, args, decl, type)) warning ("`%s' attribute directive ignored", IDENTIFIER_POINTER (name)); + else if (decl != 0) + type = TREE_TYPE (decl); continue; } else if (attrtab[i].decl_req && decl == 0)