tree-nested.c (finalize_nesting_tree_1): Disable warn_padded around layout_type call.

2005-06-07  Dale Johannesen  <dalej@apple.com>

        * tree-nested.c (finalize_nesting_tree_1):  Disable
        warn_padded around layout_type call.

From-SVN: r100728
This commit is contained in:
Dale Johannesen 2005-06-07 23:35:58 +00:00 committed by Dale Johannesen
parent e2cf9dd1a9
commit 022a817430
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-06-07 Dale Johannesen <dalej@apple.com>
* tree-nested.c (finalize_nesting_tree_1): Disable
warn_padded around layout_type call.
2005-06-08 Zdenek Dvorak <dvorakz@suse.cz>
* tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression

View File

@ -1327,7 +1327,12 @@ finalize_nesting_tree_1 (struct nesting_info *root)
out at this time. */
if (root->frame_type)
{
/* In some cases the frame type will trigger the -Wpadded warning.
This is not helpful; suppress it. */
int save_warn_padded = warn_padded;
warn_padded = 0;
layout_type (root->frame_type);
warn_padded = save_warn_padded;
layout_decl (root->frame_decl, 0);
}