This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] ABI change for variable sized types
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 17 Jul 04 10:07:59 EDT
- Subject: Re: [RFC] ABI change for variable sized types
> That's not a problem at all. There's absolutely no requirement in
> Ada that variable-sized types be passed by value. The only types that
> *must* be able to be passed by values are scalars.
Ok, that's good enough for me. I've checked in the patch.
Actually, to be very precise, it was pointed out to me a day after I sent
the above that several recent additions to the Ada languages require it
to support a pragma that specifies that a type "interfaces to C" and is
passed by value. But I don't see that as an issue because, as far as I
know, no C compiler actually *does* pass them by value.
So I still agree with your patch and if some language-lawyer does raise
this obscure issue at some point in the future, we'll deal with it.