public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39037]  New: FLOAT_CONST_DECIMAL64 pragma not supported
@ 2009-01-30  2:13 tydeman at tybor dot com
  2009-01-30 18:30 ` [Bug c/39037] " janis at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tydeman at tybor dot com @ 2009-01-30  2:13 UTC (permalink / raw)
  To: gcc-bugs

Using gcc 4.3.2-7 on Intel Pentium 4 running Linux Fedora Core 10 with
-std=gnu99

/* DFP TR 24732 == WG14 / N1312 */
#define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */
#pragma STDC FLOAT_CONST_DECIMAL64 ON /* unsuffixed => Decimal (not Binary) */

_Decimal64 d10 = 1.0DD / 3.0 ;     /* 3.0 should be treated as 3.0DD */

gets:

test7.c:5: warning: ISO C does not support decimal floating point
test7.c:5:18: warning: decimal float constants are a GCC extension
test7.c:5: error: can't mix operands of decimal float and other float types

NOTE:  This pragma is new with WG14 N1312 version of Decimal Floating Point
Technical Report (it replaced Translation Time Data Type (TTDT)).


-- 
           Summary: FLOAT_CONST_DECIMAL64 pragma not supported
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tydeman at tybor dot com
  GCC host triplet: 4.3.2
GCC target triplet: 4.3.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39037


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-04-07 11:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-30  2:13 [Bug c/39037] New: FLOAT_CONST_DECIMAL64 pragma not supported tydeman at tybor dot com
2009-01-30 18:30 ` [Bug c/39037] " janis at gcc dot gnu dot org
2009-01-30 18:42 ` hjl dot tools at gmail dot com
2009-01-30 22:03 ` janis at gcc dot gnu dot org
2009-05-07 22:34 ` janis at gcc dot gnu dot org
2010-01-13 23:15 ` janis at gcc dot gnu dot org
2010-04-07 10:58 ` vincent at vinc17 dot org
2010-04-07 11:06 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).