From 5604861b6f920aef918d9054768747109aa8c41e Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 4 Feb 1995 15:31:23 +0000 Subject: [PATCH] (dbxout_source_file): Don't switch to text section if in function with section attribute. (dbxout_source_file): Don't switch to text section if in function with section attribute. Print Ltext label to correct file (important on mips). From-SVN: r8859 --- gcc/dbxout.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index d1b1dcd897e..5da643a19c5 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -518,8 +518,12 @@ dbxout_source_file (file, filename) fprintf (file, "%s ", ASM_STABS_OP); output_quoted_string (file, filename); fprintf (file, ",%d,0,0,%s\n", N_SOL, <ext_label_name[1]); - text_section (); - ASM_OUTPUT_INTERNAL_LABEL (asmfile, "Ltext", source_label_number); + if (current_function_decl + && DECL_SECTION_NAME (current_function_decl) != NULL_TREE) + ; /* Don't change section amid function. */ + else + text_section (); + ASM_OUTPUT_INTERNAL_LABEL (file, "Ltext", source_label_number); source_label_number++; #endif lastfile = filename; -- 2.30.2