This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] PATCH: untested CALL_EXPR updates
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, kenner at vlsi1 dot ultra dot nyu dot edu, ebotcazou at adacore dot com
- Date: Fri, 16 Feb 2007 10:16:08 -0500
- Subject: [Ada] PATCH: untested CALL_EXPR updates
Here's a quick patch I put together to update the Ada front end for the
CALL_EXPR changes. This has not been tested in any way.
If anybody would like to put a little more time into this, I suggest rewriting
the bit of code in call_to_gnu that assembles a temporary argument list to pass
to build_call_list to use an alloca'ed array as instead as temporary storage
(see how I did that in max_size farther down). A quick glance at this code
didn't tell me how to determine in advance how many arguments were being passed
and hence how big of an array to allocate, but it'll probably be easy for
somebody already familiar with the Ada-specific data structures. Anyway, the
obvious hack I applied ought to work, albeit not as efficiently as we'd like. :-)
-Sandra