summaryrefslogtreecommitdiffstats
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-20 02:05:32 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-03-20 02:05:32 +0000
commit40ba573395993bed4982bd7a8f00c70093d2e9b3 (patch)
treefade4849b22b8a1c85e970d1a654ea1e87bdf648 /gcc/xcoffout.c
parent1656cc5c3c95954efd760a90d737acd3b1d5d04f (diff)
downloadppe42-gcc-40ba573395993bed4982bd7a8f00c70093d2e9b3.tar.gz
ppe42-gcc-40ba573395993bed4982bd7a8f00c70093d2e9b3.zip
(xcoffout_declare_function): Call dbxout_source_file
before emitting .function psuedo-op. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3790 138bc75d-0d04-0410-961f-82ee72b054a4
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 35b676cd260..4524c8a1c4e 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);
}
OpenPOWER on IntegriCloud