From: Jim Wilson Date: Sat, 20 Mar 1993 02:05:32 +0000 (-0800) Subject: (xcoffout_declare_function): Call dbxout_source_file X-Git-Tag: misc/cutover-egcs-0~10153 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad3b4030324fe2977456cf57f6e188856306eafe;p=thirdparty%2Fgcc.git (xcoffout_declare_function): Call dbxout_source_file before emitting .function psuedo-op. From-SVN: r3790 --- diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c index 35b676cd260d..4524c8a1c4e5 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); }