aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2018-10-19 07:17:20 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2018-10-19 07:17:20 +0000
commitba9a8625b0a7eddb237d140e89ddb78afd1e3539 (patch)
tree5de81f3816c8f5b37652cdeee06c9657d98e97e1 /gcc/stor-layout.c
parent079c81d010e3303c8fdbc4669bf3907fe7a37052 (diff)
downloadgcc-ba9a8625b0a7eddb237d140e89ddb78afd1e3539.zip
gcc-ba9a8625b0a7eddb237d140e89ddb78afd1e3539.tar.gz
gcc-ba9a8625b0a7eddb237d140e89ddb78afd1e3539.tar.bz2
cfgexpand.c (expand_one_var): Use specific wording in error message for non-local frame variables.
* cfgexpand.c (expand_one_var): Use specific wording in error message for non-local frame variables. * stor-layout.c (layout_decl): Do not issue a warning for them. From-SVN: r265305
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c4
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);