This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41494] [4.5 Regression] temp and memcpy used when zeroing array
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2009 16:43:31 -0000
- Subject: [Bug fortran/41494] [4.5 Regression] temp and memcpy used when zeroing array
- References: <bug-41494-14936@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2009-10-01 16:43 -------
> I wonder why it uses the extra temporary - that shouldn't be necessary.
The big question is only: Are there cases where one needs to call
gfc_evaluate_now?
* * *
For completeness, that part was added by the commits:
http://gcc.gnu.org/viewcvs?view=revision&revision=150817
2009-08-17 Richard Guenther <rguenther@suse.de>
* trans-expr.c (gfc_trans_scalar_assign): Replace hack with
more proper hack.
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151576
2009-09-09 Richard Guenther <rguenther@suse.de>
PR fortran/41297
* trans-expr.c (gfc_trans_scalar_assign): Correct typo that
left 'tmp' unused in derived type assignment.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41494