🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6161

Floating constant compilation bug: gcc 2.7.2 on DEC/Alpha/GNU/Linux

#6161
From: Przemek Klosowski
Date: Wed, 20 Nov 1996 00:00
17 lines
1233 bytes
C code 'double entendre = 2.2250738585072014e-308;'
generates in the following (incorrect) assembly:
        entendre:
          .t_floating 2.22507385850720138309e-308
the assembler compiles this to  ('objdump --full-contents testfpconst.o')
           0000 ffffffff ffff0f00                    ........      
whereas it should have been
           0000 00000000 00001000                    ........        
Note that the above number is DBL_MIN (I wrote it explicitly to simplify the example).


-- 
			przemek klosowski <przemek@nist.gov>  (301) 975-6249
			Reactor Division (bldg. 235), E111 
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA
Technical Details
Message-ID: <5420doit6l.fsf@rrdjazz.nist.gov>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,5071f33b41767047,start
X-Google-Attributes: gid113d02,public
From: przemek@rrdjazz.nist.gov (Przemek Klosowski)
Subject: Floating constant compilation bug: gcc 2.7.2 on DEC/Alpha/GNU/Linux
Date: 1996/11/20
Message-ID: <5420doit6l.fsf@rrdjazz.nist.gov>
X-Deja-AN: 197725207
sender: bug-gcc-request@prep.ai.mit.edu
organization: U. of Maryland/NIST
x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Wed, 20 Nov 1996 12:28:51 EST
newsgroups: gnu.gcc.bug