Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!spool2.mu.edu!uunet!munnari.oz.au!csc.anu.edu.au!manuel!anucsd!csis!dave From: dave@csis.dit.csiro.au (David Campbell) Newsgroups: comp.sys.amiga.programmer Subject: SAS C 5.10 BUG Message-ID: <1991Jan17.235844.5829@csis.dit.csiro.au> Date: 17 Jan 91 23:58:44 GMT Organization: csis.dit.csiro.au Lines: 44 /* SAS 5.10 BUG */ void hey_wake_up() { int func1(),func2(),func3(),func4(),func5(); do_job(func1,func2,func3,func4,func5); } /* **** Take a look at this, its pushing func1 5 times, not pushing **** the others at all!!! Lattice AMIGA 68000-68020 OBJ Module Disassembler V5.00 Copyright ) 1988 Lattice Inc. All Rights Reserved. Amiga Object File Loader V1.00 68000 Instruction Set EXTERNAL DEFINITIONS _hey_wake_up 0000-00 SECTION 00 "junk.c" 00000024 BYTES | 0000 BF EC 00 00-XX.2 CMPA.L __base(A4),A7 | 0004 65 00 00 00-XX.1 BCS.W __xcovf | 0008 41 F9 00 00 00 00-XX LEA _func1,A0 | 000E 2F 08 MOVE.L A0,-(A7) ;ouch!!! | 0010 2F 08 MOVE.L A0,-(A7) | 0012 2F 08 MOVE.L A0,-(A7) | 0014 2F 08 MOVE.L A0,-(A7) | 0016 2F 08 MOVE.L A0,-(A7) | 0018 4E BA 00 00-XX.1 JSR _do_job(PC) | 001C 4F EF 00 14 LEA 0014(A7),A7 | 0020 4E 75 RTS Dave Campbell dave@csis.dit.csiro.au */