Path: utzoo!attcan!uunet!mcsun!ukc!harrier.ukc.ac.uk!lrh From: lrh@ukc.ac.uk (L.R.Henry) Newsgroups: comp.sys.atari.st.tech Subject: Bug in sozobon top Message-ID: <5940@harrier.ukc.ac.uk> Date: 29 Oct 90 11:13:04 GMT Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 37 I have just found a bug in sozobon top:- If dlibs is compiled with the -O flag then the library becomes completely broken If sprintf.c is compiled with cc -S -O sprintf.c then the following code is produced:- _sputc: link a6,#0 move.l 10(a6),a0 move.l (a0),a0 addq.l #1,(a0) move.b 9(a0),d0 move.b d0,(a0) ext.w d0 unlk a6 rts If compiled without the optimiser switch then the following code is produced:- _sputc: link a6,#0 move.l 10(a6),a0 move.l (a0),d0 addq.l #1,(a0) move.l d0,a0 move.b 9(a6),(a0) move.b (a0),d0 ext.w d0 unlk a6 rts Is there a fix for this bug. (I wont fix(I'm not an expert at C)) Luke.