This is the mail archive of the gcc-patches@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]

Re: [Patch, fortran] PR44582 - gfortran generates wrong results due to wrong ABI in function with array return


Dear Tobias,

Thanks for the review.

> Thanks for the patch, which is OK - except for the following nit:
>
> ! arrayfunc_assign_needs_temporary (gfc_expr * expr1, gfc_expr * expr2)
> [...]
> ? ?/* Elemental functions don't need a temporary anyway. ?*/
> ? ?if (expr2->value.function.esym != NULL
> ? ? ? ?&& expr2->value.function.esym->attr.elemental)
> ! ? ? return true;
>
> I think the comment is misleading - given the function name and the return value; can you make the comment a bit clearer?

Indeed - this is, of course, the original comment.  I'll check them all :-)

Cheers

Paul


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