Commit 5604861b by Doug Evans

(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
parent 911f679c
...@@ -518,8 +518,12 @@ dbxout_source_file (file, filename) ...@@ -518,8 +518,12 @@ dbxout_source_file (file, filename)
fprintf (file, "%s ", ASM_STABS_OP); fprintf (file, "%s ", ASM_STABS_OP);
output_quoted_string (file, filename); output_quoted_string (file, filename);
fprintf (file, ",%d,0,0,%s\n", N_SOL, &ltext_label_name[1]); fprintf (file, ",%d,0,0,%s\n", N_SOL, &ltext_label_name[1]);
text_section (); if (current_function_decl
ASM_OUTPUT_INTERNAL_LABEL (asmfile, "Ltext", source_label_number); && 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++; source_label_number++;
#endif #endif
lastfile = filename; lastfile = filename;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment