diff options
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 58a3aa3..42df257 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -755,8 +755,8 @@ layout_decl (tree decl, unsigned int known_align) DECL_SIZE_UNIT (decl) = variable_size (DECL_SIZE_UNIT (decl)); /* If requested, warn about definitions of large data objects. */ - if ((code == VAR_DECL || code == PARM_DECL) - && ! DECL_EXTERNAL (decl)) + if ((code == PARM_DECL || (code == VAR_DECL && !DECL_NONLOCAL_FRAME (decl))) + && !DECL_EXTERNAL (decl)) { tree size = DECL_SIZE_UNIT (decl); |