diff options
author | Andrew MacLeod <amacleod@cygnus.com> | 1998-12-14 14:19:48 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 1998-12-14 14:19:48 +0000 |
commit | 3167de5b8b2fc00558d703d39c5dc5e783129512 (patch) | |
tree | 9c3b295b1593fd55841e42176ef3ad15e79ae042 /gcc/varasm.c | |
parent | 80599fd90cc3b730255b71d0fe904cd68b68f2ec (diff) | |
download | gcc-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.c | 9 |
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. */ |