aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-mudflap.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2005-06-14 19:12:24 +0000
committerFrank Ch. Eigler <fche@gcc.gnu.org>2005-06-14 19:12:24 +0000
commit0ea49890a80cdddc5f79f1b56a3e8b508bdd2e86 (patch)
treef6e6325380fda0d3045ff8cc52f110a6f9949dee /gcc/tree-mudflap.c
parent7666af8941bb4826038df099f5eef0f2a23784bc (diff)
downloadgcc-0ea49890a80cdddc5f79f1b56a3e8b508bdd2e86.zip
gcc-0ea49890a80cdddc5f79f1b56a3e8b508bdd2e86.tar.gz
gcc-0ea49890a80cdddc5f79f1b56a3e8b508bdd2e86.tar.bz2
re PR libmudflap/21023 (mudflap reports errors for external array variable with no size specified)
2005-06-14 Frank Ch. Eigler <fche@redhat.com> PR mudflap/21023 * tree-mudflap.c (mudflap_finish_file): Exclude non-public rather than static objects (!) from libmudflap registration. * testsuite/libmudflap.c/externs.exp, externs-{1,2}.c: New test files. * testsuite/libmudflap.c/cfrags.exp: Bypass new sources. From-SVN: r100950
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r--gcc/tree-mudflap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c
index 401e6b15..1ed0159 100644
--- a/gcc/tree-mudflap.c
+++ b/gcc/tree-mudflap.c
@@ -1257,7 +1257,7 @@ mudflap_finish_file (void)
Perform registration for non-static objects regardless of
TREE_USED or TREE_ADDRESSABLE, because they may be used
from other compilation units. */
- if (TREE_STATIC (obj) && ! TREE_ADDRESSABLE (obj))
+ if (! TREE_PUBLIC (obj) && ! TREE_ADDRESSABLE (obj))
continue;
if (! COMPLETE_TYPE_P (TREE_TYPE (obj)))