(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
This commit is contained in:
Doug Evans 1995-02-04 15:31:23 +00:00
parent 911f679c13
commit 5604861b6f
1 changed files with 6 additions and 2 deletions

View 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;