This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43841] Missing temporary for ELEMENTAL function call
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Apr 2010 20:01:17 -0000
- Subject: [Bug fortran/43841] Missing temporary for ELEMENTAL function call
- References: <bug-43841-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pault at gcc dot gnu dot org 2010-04-22 20:01 -------
(In reply to comment #5)
> struct polar_t * D.1551;
> D.1551 = &b[0];
>
> S.5 = 1;
> while (1)
> {
> if (S.5 > 3) goto L.3;
> b[S.5 + -1] = div_pp (&b[S.5 + -1], D.1551);
> S.5 = S.5 + 1;
> }
> L.3:;
>
The temporary is being generated but it needs dereferencing !!! ie. It would be
nice if:
> struct polar_t D.1551;
> D.1551 = b[0];
>
> S.5 = 1;
> while (1)
> {
> if (S.5 > 3) goto L.3;
> b[S.5 + -1] = div_pp (&b[S.5 + -1], &D.1551);
> S.5 = S.5 + 1;
> }
> L.3:;
>
were happening.
Paul
I'm looking at it.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43841