[Bug c/84717] suffix for double constant is a GCC extension is not documented

2019-03-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84717

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek  ---
See PR39027 for more details (PR29027 contains the commit info due to PR number
typo).

[Bug c/84717] suffix for double constant is a GCC extension is not documented

2019-03-12 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84717

Eric Gallager  changed:

   What|Removed |Added

 CC||joseph at codesourcery dot com,
   ||pinskia at gcc dot gnu.org,
   ||redi at gcc dot gnu.org

--- Comment #5 from Eric Gallager  ---
(In reply to jos...@codesourcery.com from comment #4)
> The 'd' suffix, and the FLOAT_CONST_DECIMAL64 pragma, were in TR 
> 24732:2009.  Those features were not carried forward to the newer decimal 
> floating-point specification in TS 18661-2:2015.
> 
> There haven't been any updates to the DFP support in GCC for the newer 
> specification in TS 18661-2 (or -3, for additional types).  But the vast 
> bulk of the changes in TS 18661-2 are library changes, not language ones, 
> so there probably wouldn't be much to do there (beyond constant rounding 
> modes, which aren't supported for binary floating-point either in GCC).  
> And since we don't have -std modes for TR/TS documents, we don't really 
> have a way to distinguish in GCC which DFP extensions came from which 
> document (until TS 18661-1 and -2 at least get merged into C2x so -std=c2x 
> -pedantic accepts features merged in there but not the features not merged 
> in there).

Wait I thought that was something different? This is just about regular
doubles, not decimal ones, right?

[Bug c/84717] suffix for double constant is a GCC extension is not documented

2018-03-12 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84717

--- Comment #4 from joseph at codesourcery dot com  ---
The 'd' suffix, and the FLOAT_CONST_DECIMAL64 pragma, were in TR 
24732:2009.  Those features were not carried forward to the newer decimal 
floating-point specification in TS 18661-2:2015.

There haven't been any updates to the DFP support in GCC for the newer 
specification in TS 18661-2 (or -3, for additional types).  But the vast 
bulk of the changes in TS 18661-2 are library changes, not language ones, 
so there probably wouldn't be much to do there (beyond constant rounding 
modes, which aren't supported for binary floating-point either in GCC).  
And since we don't have -std modes for TR/TS documents, we don't really 
have a way to distinguish in GCC which DFP extensions came from which 
document (until TS 18661-1 and -2 at least get merged into C2x so -std=c2x 
-pedantic accepts features merged in there but not the features not merged 
in there).

[Bug c/84717] suffix for double constant is a GCC extension is not documented

2018-03-10 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84717

Eric Gallager  changed:

   What|Removed |Added

 CC||egallager at gcc dot gnu.org
   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=63886

--- Comment #3 from Eric Gallager  ---
This also came up in bug 63886 comment 11

[Bug c/84717] suffix for double constant is a GCC extension is not documented

2018-03-05 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84717

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||documentation
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-03-05
Summary|C compiler accepts fortran  |suffix for double constant
   |style suffix "d" with float |is a GCC extension is not
   |number but result is|documented
   |strange |
 Ever confirmed|0   |1

--- Comment #2 from Andrew Pinski  ---
Extension but not documented as far as I can see.