diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-09 22:55:41 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-09 22:55:41 +0000 |
commit | 1c0a6d1e195099395b9f06dd82021f3fec7924fd (patch) | |
tree | 87730571a2c8621852cfb33bbffd30e0cd8904e5 /gcc/attribs.c | |
parent | 75727131c7c5159354955d656f54eb8d607a5dbc (diff) | |
download | gcc-1c0a6d1e195099395b9f06dd82021f3fec7924fd.tar.gz |
PR c/18282
* attribs.c (decl_attributes): Use relayout_decl.
* c-common.c (handle_mode_attribute): Copy all relevant type
parameters from the new underlying integral type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91978 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r-- | gcc/attribs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index 1aab101c624..fd11a96700f 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -259,13 +259,7 @@ decl_attributes (tree *node, tree attributes, int flags) && (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; - DECL_SIZE (*node) = 0; - - layout_decl (*node, 0); - } + relayout_decl (*node); if (!no_add_attrs) { |