aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2013-06-19 08:15:31 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2013-06-19 08:15:31 +0000
commit3fd0303a574dc611fc411137b59adf683ea2d236 (patch)
treeec53baa4a14ad4fecb222e2721a038a827fc79d7 /gcc/expr.c
parent22fc7d3d46881819c51a2e38cfd5626172b3338e (diff)
downloadgcc-3fd0303a574dc611fc411137b59adf683ea2d236.zip
gcc-3fd0303a574dc611fc411137b59adf683ea2d236.tar.gz
gcc-3fd0303a574dc611fc411137b59adf683ea2d236.tar.bz2
expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check for global context.
2013-06-19 Richard Biener <rguenther@suse.de> * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check for global context. From-SVN: r200190
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index c68f489..2a7824b 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -9353,7 +9353,7 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode,
/* Variables inherited from containing functions should have
been lowered by this point. */
context = decl_function_context (exp);
- gcc_assert (!context
+ gcc_assert (SCOPE_FILE_SCOPE_P (context)
|| context == current_function_decl
|| TREE_STATIC (exp)
|| DECL_EXTERNAL (exp)