[Bug fortran/95640] gfortran ieee_selected_real_kind returns 10
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Fri Jun 12 23:33:21 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95640
--- Comment #16 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Thu, Jun 11, 2020 at 10:40:29PM -0700, Steve Kargl wrote:
> On Fri, Jun 12, 2020 at 04:16:53AM +0000, kargl at gcc dot gnu.org wrote:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95640
> >
> > --- Comment #12 from kargl at gcc dot gnu.org ---
> > (In reply to Bill Long from comment #11)
> > > I checked with the Intel docs and the ia64 version of the compiler (what HPC
> > > users use) does not support x87.
> > >
> > > Is there a gfortran compiler option to disable x87 use (i.e. REAL(10) is an
> > > error), to match the other compilers?
> >
> > The types are set up in trans-type.c(gfc_init_kinds). I
> > do not see an option that would disable querying for
> > long_double_type_node. In principle, one might be able
> > to define an option that prevents gfortran from see a
> > long_double_type_node. This should then disable REAL(10).
>
> I have confirmed that having an -fdisable-real10 option
> could disable REAL(10) by commenting out the enumeration
> of long_double_type_node, i.e.,
>
Hmmm. Well, my attempt to add an option failed. I leave
this here in case someone else wants to unfix gfortran.
More information about the Gcc-bugs
mailing list