public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/104609] New: Add gfortran option to force single-precision constants to double-precision constants
@ 2022-02-21  8:00 dshi at synopsys dot com
  2022-02-21  8:27 ` [Bug fortran/104609] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dshi at synopsys dot com @ 2022-02-21  8:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104609

            Bug ID: 104609
           Summary: Add gfortran option to force single-precision
                    constants to double-precision constants
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dshi at synopsys dot com
  Target Milestone: ---

need gfortran front-end to be enhanced through one option to support non-double
real constants like 1.0 to be treated as double precision when default real
kind is 4 bytes. 
This will be helpful to keep consistent behavior like the option '-fpconstant'
of Intel Fortran compiler (description: Tells  the  compiler that
single-precision constants assigned to double-precision variables should be
evaluated in double  precision.)

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

* [Bug fortran/104609] Add gfortran option to force single-precision constants to double-precision constants
  2022-02-21  8:00 [Bug fortran/104609] New: Add gfortran option to force single-precision constants to double-precision constants dshi at synopsys dot com
@ 2022-02-21  8:27 ` pinskia at gcc dot gnu.org
  2022-02-21 19:31 ` anlauf at gcc dot gnu.org
  2022-02-22  3:38 ` dshi at synopsys dot com
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-02-21  8:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104609

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

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

* [Bug fortran/104609] Add gfortran option to force single-precision constants to double-precision constants
  2022-02-21  8:00 [Bug fortran/104609] New: Add gfortran option to force single-precision constants to double-precision constants dshi at synopsys dot com
  2022-02-21  8:27 ` [Bug fortran/104609] " pinskia at gcc dot gnu.org
@ 2022-02-21 19:31 ` anlauf at gcc dot gnu.org
  2022-02-22  3:38 ` dshi at synopsys dot com
  2 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2022-02-21 19:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104609

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-02-21
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from anlauf at gcc dot gnu.org ---
Please read the documentation about available options and be aware of the
risks associated with them:

https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html

There is -freal-4-real-8 and -fdefault-real-8, but do not expect support
beyond these.

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

* [Bug fortran/104609] Add gfortran option to force single-precision constants to double-precision constants
  2022-02-21  8:00 [Bug fortran/104609] New: Add gfortran option to force single-precision constants to double-precision constants dshi at synopsys dot com
  2022-02-21  8:27 ` [Bug fortran/104609] " pinskia at gcc dot gnu.org
  2022-02-21 19:31 ` anlauf at gcc dot gnu.org
@ 2022-02-22  3:38 ` dshi at synopsys dot com
  2 siblings, 0 replies; 4+ messages in thread
From: dshi at synopsys dot com @ 2022-02-22  3:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104609

--- Comment #2 from Deng Shi <dshi at synopsys dot com> ---
I know the option -freal-4-real-8, but this options affects both REAL variable
and constant. While this request is to one option ONLY applied for REAL
constant number like 1.0.

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

end of thread, other threads:[~2022-02-22  3:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21  8:00 [Bug fortran/104609] New: Add gfortran option to force single-precision constants to double-precision constants dshi at synopsys dot com
2022-02-21  8:27 ` [Bug fortran/104609] " pinskia at gcc dot gnu.org
2022-02-21 19:31 ` anlauf at gcc dot gnu.org
2022-02-22  3:38 ` dshi at synopsys dot com

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).