summaryrefslogtreecommitdiff
path: root/gcc/attribs.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-25 22:38:53 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-25 22:38:53 +0000
commite56de52fbe7b46287a025f7f6f71b1abd6ed8468 (patch)
tree90adb1f9c68b91787e88c2be94b09cf9fd7956e8 /gcc/attribs.c
parent48285a3cb0ec5c5b49a5dcab274e355dd8863653 (diff)
downloadgcc-e56de52fbe7b46287a025f7f6f71b1abd6ed8468.tar.gz
* attribs.c (decl_attributes): Also re-layout PARM_DECL and
RESULT_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50027 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r--gcc/attribs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c
index 543931add01..b915c880716 100644
--- a/gcc/attribs.c
+++ b/gcc/attribs.c
@@ -386,7 +386,9 @@ decl_attributes (node, attributes, flags)
/* Layout the decl in case anything changed. */
if (spec->type_required && DECL_P (*node)
- && TREE_CODE (*node) == VAR_DECL)
+ && (TREE_CODE (*node) == VAR_DECL
+ || TREE_CODE (*node) == PARM_DECL
+ || TREE_CODE (*node) == RESULT_DECL))
{
/* Force a recalculation of mode and size. */
DECL_MODE (*node) = VOIDmode;