aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-07-18 06:06:45 +0000
committerRichard Stallman <rms@gnu.org>1993-07-18 06:06:45 +0000
commitcadcc1c11cb6301b68fa28fbc98cca85bcfdf8cf (patch)
tree7ad8d104742fdd4b173f119333ef4703c979d46a /gcc/dbxout.c
parent081be30bbf09a0c2429d5962aa567e722ac1afd2 (diff)
downloadgcc-cadcc1c11cb6301b68fa28fbc98cca85bcfdf8cf.zip
gcc-cadcc1c11cb6301b68fa28fbc98cca85bcfdf8cf.tar.gz
gcc-cadcc1c11cb6301b68fa28fbc98cca85bcfdf8cf.tar.bz2
(dbxout_symbol_location): Call in_text_section
to decide whether to use DBX_STATIC_CONST_VAR_CODE. From-SVN: r4933
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index c2afd68..1bf21af 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1747,7 +1747,7 @@ dbxout_symbol_location (decl, type, suffix, home)
if (!DECL_INITIAL (decl))
current_sym_code = N_LCSYM;
- else if (TREE_READONLY (decl) && ! TREE_THIS_VOLATILE (decl))
+ else if (in_text_section ())
/* This is not quite right, but it's the closest
of all the codes that Unix defines. */
current_sym_code = DBX_STATIC_CONST_VAR_CODE;