diff options
author | Doug Evans <dje@gnu.org> | 1995-02-04 15:31:23 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1995-02-04 15:31:23 +0000 |
commit | 5604861b6f920aef918d9054768747109aa8c41e (patch) | |
tree | c44331201b5c25627655a9f75728a069f1d68771 | |
parent | 911f679c133ff9640dae85a901b57f19344e277c (diff) | |
download | gcc-5604861b6f920aef918d9054768747109aa8c41e.zip gcc-5604861b6f920aef918d9054768747109aa8c41e.tar.gz gcc-5604861b6f920aef918d9054768747109aa8c41e.tar.bz2 |
(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
-rw-r--r-- | gcc/dbxout.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index d1b1dcd..5da643a 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; |