Article View: gnu.gcc.bug
Article #2025bug in floating point constants?
From: Bruce Bauman
Date: Wed, 30 Nov 1988 21:49
Date: Wed, 30 Nov 1988 21:49
35 lines
1365 bytes
1365 bytes
Using version 1.31 of the GNU C compiler on a Sequent Symmetry (i386) machine, the compiler generates invalid assembly code. The unbootstrapped compiler generates valid assembly code. I believe the errors are generated by CSEs like (1 << BITS_PER_INT / 2). The invalid code is generated for tree.c. Here's a diff of the "good" (unbootstrapped) and bad (bootstrapped) output: 1797c1797 < .double 0d4.29496729600000000000e+09 --- > .double 0dden0x00000000000000001000 *** BAD *** 1800c1800 < .double 0d1.00000000000000000000e+00 --- > .double 0d4.29496729600000000000e+09 1845c1845 < fldl LC7 --- > fldl LC8 1857c1857 < fsubl LC8 --- > fsubl LC7 1876c1876 < fldl LC7 --- > fldl LC8 Note that the line marked ** BAD ** above contains the string "den", for denormalized floating point. This error was found during installation, during the "make" of stage 2 (compile the compiler through itself one more time).
Technical Details
Message-ID:
<8811302149.AA15955@ravel.sli.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!CIS.OHIO-STATE.EDU!bootShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!CIS.OHIO-STATE.EDU!boot From: boot@CIS.OHIO-STATE.EDU (Bruce Bauman) Newsgroups: gnu.gcc.bug Subject: bug in floating point constants? Message-ID: <8811302149.AA15955@ravel.sli.com> Date: 30 Nov 88 21:49:33 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 34