Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!ddl From: ddl@husc6.harvard.edu (Dan Lanciani) Newsgroups: comp.sys.ibm.pc Subject: MSC 5.1 bug Keywords: bug _saveregs far Message-ID: <2113@husc6.harvard.edu> Date: 23 Jun 89 23:44:14 GMT Organization: Harvard University, Cambridge MA Lines: 23 The compiler miscalculates the argument stack offset for far _saveregs functions by two bytes. This is surprising since _saveregs far pascal functions are the most likely definitions for OS/2 entry points and would presumably have been tested. Repeat by: _saveregs far foo(a, b, c, d) { printf("%d %d %d %d\n", a, b, c, d); } main() { foo(1, 2, 3, 4); } Remove the _saveregs or the far and note the difference. Dan Lanciani ddl@harvard.*