On Wed, 1 Mar 2023 10:40:15 +0100
Tobias Burnus <[email protected]> wrote:
> Hi,
>
> Please CC fortran@gcc for Fortran patches.
> > --- a/gcc/fortran/target-memory.cc
> > +++ b/gcc/fortran/target-memory.cc
> > @@ -417,10 +417,13 @@ gfc_interpret_float (int kind, unsigned char *buffer,
> > size_t buffer_size,
> > {
> > gfc_set_model_kind (kind);
> > mpfr_init (real);
> > - gfc_conv_tree_to_mpfr (real,
> > - native_interpret_expr (gfc_get_real_type (kind),
> > - buffer, buffer_size));
> >
> > + tree source = native_interpret_expr (gfc_get_real_type (kind), buffer,
s/source = native/source = native/
additionally to moving mpfr_init around and the other comments.
Please send an updated, regtested patch?
thanks && cheers,