summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-14 19:12:24 +0000
committerfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-14 19:12:24 +0000
commit2af68321e99d12619b57c4203093da441cbb6164 (patch)
treef6e6325380fda0d3045ff8cc52f110a6f9949dee /gcc
parent418352846c7a1219c6f702c1bec1ccddabdcfc64 (diff)
downloadgcc-2af68321e99d12619b57c4203093da441cbb6164.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100950 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-mudflap.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0de09727b8c..023b85db884 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2005-06-14 Richard Sandiford <richard@codesourcery.com>
* opt-functions.awk (global_state_p, needs_state_p, static_var): New.
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c
index 401e6b15cdb..1ed0159fed5 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)))