summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 1118a182690..a93946d2ec7 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -448,6 +448,9 @@ static void
dbxout_function_end (void)
{
char lscope_label_name[100];
+
+ function_section (current_function_decl);
+
/* Convert Ltext into the appropriate format for local labels in case
the system doesn't insert underscores in front of user generated
labels. */
@@ -728,7 +731,10 @@ dbxout_source_file (FILE *file, const char *filename)
&& DECL_SECTION_NAME (current_function_decl) != NULL_TREE)
; /* Don't change section amid function. */
else
- text_section ();
+ {
+ if (!in_text_section () && !in_unlikely_text_section ())
+ text_section ();
+ }
targetm.asm_out.internal_label (file, "Ltext", source_label_number);
source_label_number++;
lastfile = filename;