Re: Multiple return values and dynamic typing in a new frontend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you! This sounds like a good idea and more or less obvious, but I
didn't think about this option before.

to 13. huhtik. 2023 klo 14.36 Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx>
kirjoitti:

> Hi!
>
> On Thu, Apr 13, 2023 at 01:46:06PM +0300, Juhani Viheräkoski via Gcc-help
> wrote:
> > Is it preferred to convert multiple return values to extra reference
> > parameters before converting to GIMPLE or should I rather expand the
> > middle-end to support them properly?
>
> You can just use a struct type for the return value?  That doesn't force
> the backend to put things in memory, it can still have the return value
> in multiple registers (depending on ABI).
>
>
> Segher
>




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux