aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-08-17 13:52:26 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2006-08-17 13:52:26 +0200
commit343d4b27bf3dfdd3042389dbdaff2afe427864f6 (patch)
tree1079f5fa46aa27a5d4a1d75e9246bdc01981cd50 /gcc/cgraph.h
parent7ffaaddcdaf19adac105e8481e83ef32c059b641 (diff)
downloadgcc-343d4b27bf3dfdd3042389dbdaff2afe427864f6.zip
gcc-343d4b27bf3dfdd3042389dbdaff2afe427864f6.tar.gz
gcc-343d4b27bf3dfdd3042389dbdaff2afe427864f6.tar.bz2
re PR c/28744 (externally_visible attribute not effective with prior declaration of symbol.)
PR c/28744 * cgraph.h (struct cgraph_node): Remove externally_visible bitfield. * cgraphunit.c (process_function_and_variable_attributes): Set local.externally_visible rather than externally_visible. PR c/28744 * c-common.c (handle_externally_visible_attribute): First look at TREE_CODE and only if it is function or var decl, check for non-public objects. Don't warn for DECL_EXTERNAL. * cgraphunit.c (process_function_and_variable_attributes): Warn if externally_visible attribute is used on non-public object. * gcc.dg/attr-externally-visible-1.c: New test. * gcc.dg/attr-externally-visible-2.c: New test. * g++.dg/parse/attr-externally-visible-1.C: New test. * g++.dg/parse/attr-externally-visible-2.C: New test. From-SVN: r116222
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 31ddfe3..7b69611 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -160,8 +160,6 @@ struct cgraph_node GTY((chain_next ("%h.next"), chain_prev ("%h.previous")))
unsigned analyzed : 1;
/* Set when function is scheduled to be assembled. */
unsigned output : 1;
- /* Set when function is visible by other units. */
- unsigned externally_visible : 1;
/* Set for aliases once they got through assemble_alias. */
unsigned alias : 1;