Xref: news-dnh.mv.net comp.os.msdos.djgpp:985 Path: news-dnh.mv.net!mv!news.sprintlink.net!simtel!lll-winken.llnl.gov!ames!waikato!comp.vuw.ac.nz!mu.sans.vuw.ac.nz!empty From: empty AT sans DOT vuw DOT ac DOT nz (Malcolm Taylor) Newsgroups: comp.os.msdos.djgpp Subject: Possible GCC (v2.0-beta) bug. Date: 19 Jul 1995 05:54:15 GMT Organization: SANS, Student Access Network System Lines: 10 Nntp-Posting-Host: mu.sans.vuw.ac.nz To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp Hi, I have just finished removing a 'bug' from my code, which seems very much to have been caused by the compiler. I was doing a compare of a register (union REGS) r.x.cx!=0 and this was coming out true even when r.x.cx==0. I have a feeling that the compiler was comparing a full int (4 bytes) instead of a word with zero. I have removed this by getting the values with inline assembly instead. Malcolm