This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 41714: [OOP] ALLOCATE SOURCE= does not properly copy the value from SOURCE
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, salvatore dot filippone at uniroma2 dot it
- Date: Sun, 25 Oct 2009 15:52:04 +0100
- Subject: Re: [Patch, Fortran] PR 41714: [OOP] ALLOCATE SOURCE= does not properly copy the value from SOURCE
- References: <854832d40910250420i45c7bfddga4130fc1f1bfccd0@mail.gmail.com>
Janus,
It looks OK to me except:
> ? ? ? ?PR fortran/41714
> ? ? ? ?* trans-expr.c (gfc_build_memcpy_call): Take care of the case that the
> ? ? ? ?call to '__builtin_memcpy' is optimized away (replaced by a direct
> ? ? ? ?assignment).
How the heck does that work? It comes out as a NOP_EXPR and yet it's
really an assignment..... Is that documented somewhere?
Cheers
Paul