summaryrefslogtreecommitdiffstats
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authoramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 14:19:48 +0000
committeramacleod <amacleod@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-14 14:19:48 +0000
commit14948c31be2f4d3bc140d3e67cad3ba1e85fb357 (patch)
tree9c3b295b1593fd55841e42176ef3ad15e79ae042 /gcc/varasm.c
parent881c3cf0ff288ee444b6492a9bdb5be77363796a (diff)
downloadppe42-gcc-14948c31be2f4d3bc140d3e67cad3ba1e85fb357.tar.gz
ppe42-gcc-14948c31be2f4d3bc140d3e67cad3ba1e85fb357.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24311 138bc75d-0d04-0410-961f-82ee72b054a4
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 e47a0cda419..343c60364c6 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. */
OpenPOWER on IntegriCloud