]> gcc.gnu.org Git - gcc.git/commitdiff
(dbxout_source_file): Don't switch to text section if in function with section attribute.
authorDoug Evans <dje@gnu.org>
Sat, 4 Feb 1995 15:31:23 +0000 (15:31 +0000)
committerDoug Evans <dje@gnu.org>
Sat, 4 Feb 1995 15:31:23 +0000 (15:31 +0000)
(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

index d1b1dcd897eb1d5b7e84350203d8f22cd4a83ba8..5da643a19c5e7fc36c286d1b92c3b6012eb95ccb 100644 (file)
@@ -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, &ltext_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;
This page took 0.065221 seconds and 5 git commands to generate.