From cadcc1c11cb6301b68fa28fbc98cca85bcfdf8cf Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 18 Jul 1993 06:06:45 +0000 Subject: [PATCH] (dbxout_symbol_location): Call in_text_section to decide whether to use DBX_STATIC_CONST_VAR_CODE. From-SVN: r4933 --- gcc/dbxout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c2afd68921c..1bf21af3700 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; -- 2.30.2