diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-13 12:42:36 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-10-13 12:42:36 +0200 |
commit | 1a1ab05e906d5fe546e72354dd79d455becd71df (patch) | |
tree | ca1888b5a59806a7abcaa4dd88da738af51d8c09 /gcc/varasm.c | |
parent | 5579170b40876cbf8af7a369a7b1ea98e76e8b59 (diff) | |
download | gcc-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/varasm.c')
-rw-r--r-- | gcc/varasm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index a036872..99dd4cb 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -6856,8 +6856,8 @@ default_binds_local_p_3 (const_tree exp, bool shlib, bool weak_dominate, FIXME: We can resolve the weakref case more curefuly by looking at the weakref alias. */ if (lookup_attribute ("weakref", DECL_ATTRIBUTES (exp)) - || (TREE_CODE (exp) == FUNCTION_DECL - && lookup_attribute ("ifunc", DECL_ATTRIBUTES (exp)))) + || (TREE_CODE (exp) == FUNCTION_DECL + && lookup_attribute ("ifunc", DECL_ATTRIBUTES (exp)))) return false; /* Static variables are always local. */ |