summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 1198e72eb92..0d16e67698f 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -1144,6 +1144,10 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
#endif
}
+ /* dbxout.c needs to know this. */
+ if (in_text_section ())
+ DECL_IN_TEXT_SECTION (decl) = 1;
+
/* Compute and output the alignment of this data. */
align = DECL_ALIGN (decl);