aboutsummaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-03-19 18:05:32 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-03-19 18:05:32 -0800
commitad3b4030324fe2977456cf57f6e188856306eafe (patch)
treefade4849b22b8a1c85e970d1a654ea1e87bdf648 /gcc/xcoffout.c
parent149e4e000e730dcc80071b5948b47d0ddc8970cd (diff)
downloadgcc-ad3b4030324fe2977456cf57f6e188856306eafe.zip
gcc-ad3b4030324fe2977456cf57f6e188856306eafe.tar.gz
gcc-ad3b4030324fe2977456cf57f6e188856306eafe.tar.bz2
(xcoffout_declare_function): Call dbxout_source_file
before emitting .function psuedo-op. From-SVN: r3790
Diffstat (limited to 'gcc/xcoffout.c')
-rw-r--r--gcc/xcoffout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index 35b676c..4524c8a 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -423,6 +423,10 @@ xcoffout_declare_function (file, decl, name)
}
}
+ /* Any pending .bi or .ei must occur before the .function psuedo op.
+ Otherwise debuggers will think that the function is in the previous
+ file and/or at the wrong line number. */
+ dbxout_source_file (file, DECL_SOURCE_FILE (decl));
dbxout_symbol (decl, 0);
fprintf (file, "\t.function .%s,.%s,16,044,FE..%s-.%s\n", n, n, n, n);
}