This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/43841] Missing temporary for ELEMENTAL function call



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]