diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-20 19:43:41 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-20 19:43:41 +0000 |
commit | 399d5f1dc3e788f3c85ab94c833f44c10c031937 (patch) | |
tree | 7103e71c2c0d7e7f07e705e15f371be8795b460b /gcc/tree.c | |
parent | cdbc75740c9fdc2530d60758edea306f21a367d9 (diff) | |
download | gcc-399d5f1dc3e788f3c85ab94c833f44c10c031937.tar.gz |
* tree.c (set_decl_assembler_name): Set DECL_ASSEMBLER_NAME for
variables that are TREE_PUBLIC, even if not TREE_STATIC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 573d7a2aa13..d05f3cac1da 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -204,7 +204,9 @@ set_decl_assembler_name (decl) DECL_ASSEMBLER_NAME. */ if (TREE_CODE (decl) == FUNCTION_DECL || (TREE_CODE (decl) == VAR_DECL - && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))) + && (TREE_STATIC (decl) + || DECL_EXTERNAL (decl) + || TREE_PUBLIC (decl)))) /* By default, assume the name to use in assembly code is the same as that used in the source language. (That's correct for C, and GCC used to set DECL_ASSEMBLER_NAME to the same |