[Bug fortran/52884] double precision constants promoted to 16 byte by -fdefault-real-8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52884 Dominique d'Humieres changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #6 from Dominique d'Humieres --- Closing.
[Bug fortran/52884] double precision constants promoted to 16 byte by -fdefault-real-8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52884 --- Comment #5 from dominiq at gcc dot gnu.org --- Author: dominiq Date: Wed Jan 30 15:53:51 2019 New Revision: 268396 URL: https://gcc.gnu.org/viewcvs?rev=268396&root=gcc&view=rev Log: 2019-01-30 Dominique d'Humieres PR fortran/52884 * invoke.texi: Document the promotion of double precision constants. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/invoke.texi
[Bug fortran/52884] double precision constants promoted to 16 byte by -fdefault-real-8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52884 --- Comment #4 from Dominique d'Humieres --- Patch submitted at https://gcc.gnu.org/ml/fortran/2019-01/msg00251.html.
[Bug fortran/52884] double precision constants promoted to 16 byte by -fdefault-real-8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52884 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org --- Comment #3 from Jerry DeLisle --- May I suggest the following wording: -fdefault-real-8 Set the default real type to an 8 byte wide type. This option also affects the kind of non-double real constants like 1.0. This option promotes the default width of DOUBLE PRECISION and double real constants like 1.d0 to 16 bytes if possible. If -fdefault-double-8 is given along with -fdefault-real-8, DOUBLE PRECISION and double real constants are not promoted. Note, -fdefault-real-8, does not promote variables with explicit kind declarations. -fdefault-double-8 Set the DOUBLE PRECISION type to an 8 byte wide type. Do nothing if this is already the default. This option prevents -fdefault-real-8 from promoting DOUBLE PRECISION and double real constants like 1.d0 to 16 bytes.
[Bug fortran/52884] double precision constants promoted to 16 byte by -fdefault-real-8
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52884 --- Comment #2 from Dominique d'Humieres --- I am planning to submit the following patch --- ../_clean/gcc/fortran/invoke.texi 2016-03-13 09:07:16.0 +0100 +++ gcc/fortran/invoke.texi 2016-04-06 20:44:26.0 +0200 @@ -361,9 +361,10 @@ it does not promote variables with expli @opindex @code{fdefault-double-8} Set the @code{DOUBLE PRECISION} type to an 8 byte wide type. Do nothing if this is already the default. If @option{-fdefault-real-8} is given, -@code{DOUBLE PRECISION} would instead be promoted to 16 bytes if possible, and +@code{DOUBLE PRECISION} would instead be promoted to 16 bytes if possible, +as well as double real constants like @code{1.d0}, and @option{-fdefault-double-8} can be used to prevent this. The kind of real -constants like @code{1.d0} will not be changed by @option{-fdefault-real-8} +constants like @code{1.0_8} will not be changed by @option{-fdefault-real-8} though, so also @option{-fdefault-double-8} does not affect it. @item -finteger-4-integer-8
[Bug fortran/52884] double precision constants promoted to 16 byte by -fdefault-real-8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52884 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed||2014-01-07 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres --- If I replace kind(1.d0) with kind(1.0_8), I get '8 16 8' with -fdefault-real-8. I am in favor to replace 'does promote the default width of DOUBLE PRECISION to 16 bytes if possible' with something such as 'does promote the default width of DOUBLE PRECISION to 16 bytes if possible, as well as double real constants like 1.d0' and 'The kind of real constants like "1.d0"' with 'The kind of real constants like "1.0_8"'.