Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!jclark!jjc From: jclark!jjc@UUNET.UU.NET (James Clark) Newsgroups: gnu.gcc.bug Subject: gcc 1.35/i386g fp subtraction bug Message-ID: <8905221541.AA15000@jclark.uucp> Date: 22 May 89 15:41:48 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 20 The following program compiled by gcc -g outputs -4 rather than 4. double foo() { return 1.0; } main() { double x = 5.0; x -= foo(); printf("%g\n", x); } gcc is version 1.35 for 80386 with gas (configured with config.gcc i386g) compiled by itself running on a 386 PC with SVR3.2 (386/ix 2.0.1). I was using gas version 1.31. James Clark jjc@jclark.uucp