aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-10-13 12:42:36 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-10-13 12:42:36 +0200
commit1a1ab05e906d5fe546e72354dd79d455becd71df (patch)
treeca1888b5a59806a7abcaa4dd88da738af51d8c09 /gcc/tree.h
parent5579170b40876cbf8af7a369a7b1ea98e76e8b59 (diff)
downloadgcc-1a1ab05e906d5fe546e72354dd79d455becd71df.zip
gcc-1a1ab05e906d5fe546e72354dd79d455becd71df.tar.gz
gcc-1a1ab05e906d5fe546e72354dd79d455becd71df.tar.bz2
re PR c/77946 (-Wimplicit-fallthrough=1 ICE: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘label_decl’)
PR c/77946 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of public_flag. * varasm.c (default_binds_local_p_3): Formatting fix. * c-c++-common/Wimplicit-fallthrough-34.c: New test. From-SVN: r241094
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 30c6439..434a7a1 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -777,7 +777,7 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int,
/* Whether a case or a user-defined label is allowed to fall through to.
This is used to implement -Wimplicit-fallthrough. */
#define FALLTHROUGH_LABEL_P(NODE) \
- (LABEL_DECL_CHECK (NODE)->base.public_flag)
+ (LABEL_DECL_CHECK (NODE)->base.private_flag)
/* Nonzero means this expression is volatile in the C sense:
its address should be of type `volatile WHATEVER *'.