diff options
author | Jason Merrill <jason@redhat.com> | 2002-02-25 17:38:53 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-02-25 17:38:53 -0500 |
commit | 67282790905646306eb5c651d14dfb39a3627920 (patch) | |
tree | 90adb1f9c68b91787e88c2be94b09cf9fd7956e8 /gcc/attribs.c | |
parent | 5c1817565f2c0f669634fab893d03cc83c215a4f (diff) | |
download | gcc-67282790905646306eb5c651d14dfb39a3627920.zip gcc-67282790905646306eb5c651d14dfb39a3627920.tar.gz gcc-67282790905646306eb5c651d14dfb39a3627920.tar.bz2 |
attribs.c (decl_attributes): Also re-layout PARM_DECL and RESULT_DECL.
* attribs.c (decl_attributes): Also re-layout PARM_DECL and
RESULT_DECL.
From-SVN: r50027
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r-- | gcc/attribs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index 543931a..b915c880 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; |