(xcoffout_declare_function): Call dbxout_source_file
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Mar 1993 02:05:32 +0000 (02:05 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Mar 1993 02:05:32 +0000 (02:05 +0000)
before emitting .function psuedo-op.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3790 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/xcoffout.c

index 35b676c..4524c8a 100644 (file)
@@ -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);
 }