aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
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/varasm.c
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/varasm.c')
-rw-r--r--gcc/varasm.c4
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. */