aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1998-12-14 14:19:48 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1998-12-14 14:19:48 +0000
commit3167de5b8b2fc00558d703d39c5dc5e783129512 (patch)
tree9c3b295b1593fd55841e42176ef3ad15e79ae042 /gcc/varasm.c
parent80599fd90cc3b730255b71d0fe904cd68b68f2ec (diff)
downloadgcc-3167de5b8b2fc00558d703d39c5dc5e783129512.zip
gcc-3167de5b8b2fc00558d703d39c5dc5e783129512.tar.gz
gcc-3167de5b8b2fc00558d703d39c5dc5e783129512.tar.bz2
output.h (force_data_section): New prototype.
* output.h (force_data_section): New prototype. * varasm.c (force_data_section): New function to force the data section, regardless of what in_section thinks. * dwarf2out.c (output_call_frame_info): Call force_data_section since varasm may not realize we've changes sections. From-SVN: r24311
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index e47a0cd..343c603 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -216,6 +216,15 @@ data_section ()
in_section = in_data;
}
}
+/* Tell assembler to ALWAYS switch to data section, in case
+ it's not sure where it it. */
+
+void
+force_data_section ()
+{
+ in_section = no_section;
+ data_section ();
+}
/* Tell assembler to switch to read-only data section. This is normally
the text section. */