aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorRafael Avila de Espindola <espindola@google.com>2009-10-28 20:44:47 +0000
committerRafael Espindola <espindola@gcc.gnu.org>2009-10-28 20:44:47 +0000
commit4d62b56ae81b7c0b86b35aeef05110bbbe4186cf (patch)
treeb9befde460bd5590ca8a9f5998d9ff8a8ad555b4 /gcc/dbxout.c
parentda18ea94d9c98c5a7d429e3615309fe80f8edbaf (diff)
downloadgcc-4d62b56ae81b7c0b86b35aeef05110bbbe4186cf.zip
gcc-4d62b56ae81b7c0b86b35aeef05110bbbe4186cf.tar.gz
gcc-4d62b56ae81b7c0b86b35aeef05110bbbe4186cf.tar.bz2
trans-common.c (create_common): Set TREE_PUBLIC to false on fake variables.
2009-10-28 Rafael Avila de Espindola <espindola@google.com> * trans-common.c (create_common): Set TREE_PUBLIC to false on fake variables. 2009-10-28 Rafael Avila de Espindola <espindola@google.com> * dbxout.c (dbxout_common_check): Accept non public trees. * dwarf2out.c (fortran_common): Accept non public trees. From-SVN: r153685
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index b5688d9..0bf5e3c 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -3189,7 +3189,7 @@ dbxout_common_check (tree decl, int *value)
rtx sym_addr;
const char *name = NULL;
- /* If the decl isn't a VAR_DECL, or if it isn't public or static, or if
+ /* If the decl isn't a VAR_DECL, or if it isn't static, or if
it does not have a value (the offset into the common area), or if it
is thread local (as opposed to global) then it isn't common, and shouldn't
be handled as such.
@@ -3198,7 +3198,6 @@ dbxout_common_check (tree decl, int *value)
for thread-local symbols. Can be handled via same mechanism as used
in dwarf2out.c. */
if (TREE_CODE (decl) != VAR_DECL
- || !TREE_PUBLIC(decl)
|| !TREE_STATIC(decl)
|| !DECL_HAS_VALUE_EXPR_P(decl)
|| DECL_THREAD_LOCAL_P (decl)