aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-04 18:21:23 +0000
committerRichard Stallman <rms@gnu.org>1993-11-04 18:21:23 +0000
commita8e2f17947a53da34dab7b0b6050ea2eee326bc5 (patch)
tree30dc1c2de058bff63d5334496ff6da9161265b12
parent2708da920e03ce3dd4be2039d4377c50c2e1de29 (diff)
downloadgcc-a8e2f17947a53da34dab7b0b6050ea2eee326bc5.zip
gcc-a8e2f17947a53da34dab7b0b6050ea2eee326bc5.tar.gz
gcc-a8e2f17947a53da34dab7b0b6050ea2eee326bc5.tar.bz2
(assemble_variable): Set DECL_IN_TEXT_SECTION somewhat earlier.
From-SVN: r5994
-rw-r--r--gcc/varasm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 0d16e67..013be97 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -1103,6 +1103,10 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
data_section ();
#endif
+ /* dbxout.c needs to know this. */
+ if (in_text_section ())
+ DECL_IN_TEXT_SECTION (decl) = 1;
+
/* Record current section so we can restore it if dbxout.c clobbers it. */
saved_in_section = in_section;
@@ -1129,6 +1133,8 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
while we are doing our final traversal of the chain of file-scope
declarations. */
+ /* If the debugging output changed sections, reselect the section
+ that's supposed to be selected. */
if (in_section != saved_in_section)
{
/* Switch to the proper section for this data. */
@@ -1144,10 +1150,6 @@ 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);