aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1995-02-13 22:08:43 +0000
committerDoug Evans <dje@gnu.org>1995-02-13 22:08:43 +0000
commit4d1065ed1b3ec80edaa39bcb1b302b7cc0d1f2cb (patch)
tree7bd2f95374619b6a13422a2c5117a19e9e8daf02 /gcc/dwarfout.c
parent2c62c124a78fee391c2742578af8faf233ecbb4f (diff)
downloadgcc-4d1065ed1b3ec80edaa39bcb1b302b7cc0d1f2cb.zip
gcc-4d1065ed1b3ec80edaa39bcb1b302b7cc0d1f2cb.tar.gz
gcc-4d1065ed1b3ec80edaa39bcb1b302b7cc0d1f2cb.tar.bz2
varasm.c (function_section): New function.
* varasm.c (function_section): New function. (assemble_start_function): Call it. * output.h (function_section): Declare it. * final.c (final_scan_insn): Call function_section instead of text_section. * dwarfout.c (dwarfout_begin_block): Likewise. (dwarfout_end_block): Likewise. (dwarfout_label): Likewise. (dwarfout_begin_function): Likewise. (dwarfout_end_function): Likewise. (dwarfout_line): Likewise. From-SVN: r8942
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c
index 4287e10..3ebff01 100644
--- a/gcc/dwarfout.c
+++ b/gcc/dwarfout.c
@@ -4923,7 +4923,7 @@ dwarfout_begin_block (blocknum)
{
char label[MAX_ARTIFICIAL_LABEL_BYTES];
- text_section ();
+ function_section (current_function_decl);
sprintf (label, BLOCK_BEGIN_LABEL_FMT, blocknum);
ASM_OUTPUT_LABEL (asm_out_file, label);
}
@@ -4937,7 +4937,7 @@ dwarfout_end_block (blocknum)
{
char label[MAX_ARTIFICIAL_LABEL_BYTES];
- text_section ();
+ function_section (current_function_decl);
sprintf (label, BLOCK_END_LABEL_FMT, blocknum);
ASM_OUTPUT_LABEL (asm_out_file, label);
}
@@ -4953,7 +4953,7 @@ dwarfout_label (insn)
{
char label[MAX_ARTIFICIAL_LABEL_BYTES];
- text_section ();
+ function_section (current_function_decl);
sprintf (label, INSN_LABEL_FMT, current_funcdef_number,
(unsigned) INSN_UID (insn));
ASM_OUTPUT_LABEL (asm_out_file, label);
@@ -4969,7 +4969,7 @@ dwarfout_begin_function ()
{
char label[MAX_ARTIFICIAL_LABEL_BYTES];
- text_section ();
+ function_section (current_function_decl);
sprintf (label, BODY_BEGIN_LABEL_FMT, current_funcdef_number);
ASM_OUTPUT_LABEL (asm_out_file, label);
}
@@ -4982,7 +4982,7 @@ dwarfout_end_function ()
{
char label[MAX_ARTIFICIAL_LABEL_BYTES];
- text_section ();
+ function_section (current_function_decl);
sprintf (label, BODY_END_LABEL_FMT, current_funcdef_number);
ASM_OUTPUT_LABEL (asm_out_file, label);
}
@@ -5156,7 +5156,7 @@ dwarfout_line (filename, line)
static unsigned prev_file_entry_num = (unsigned) -1;
register unsigned this_file_entry_num = lookup_filename (filename);
- text_section ();
+ function_section (current_function_decl);
sprintf (label, LINE_CODE_LABEL_FMT, ++last_line_entry_num);
ASM_OUTPUT_LABEL (asm_out_file, label);