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,gfortran] PR 22607: PURE return-by-reference functions


Erik Edelmann wrote:
> Here's a patch for PR 22607; PURE (including ELEMENTAL)
> return-by-reference functions don't currently work.  If we
> avoid setting
> 
>         DECL_IS_PURE (fndecl) = 1;
> 
> in trans-decl.c(build_function_decl), the problem is fixed.
> 
> I do, however, not know much about the backend.  Among the things
> I don't know is whether DECL_IS_PURE (fndecl) = 1 is supposed to
> work for return-by-ref. functions or not (might this actually be
> a backend bug?).  Comments from people with better understanding
> of the backend are wellcome.
> 
> Bootstrapped & tested on Linux/x86, Ok?

Yes, I guess this borders on obvious.

- Tobi

:REVIEWMAIL:


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