diff options
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r-- | gcc/tree-mudflap.c | 2 |
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))) |