This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Use of VLA in struct in gcc-torture/execute/20020412-1.c
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Richard Henderson <rth at redhat dot com>, John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, gcc at gcc dot gnu dot org
- Date: Sun, 08 Sep 2002 00:31:55 -0400
- Subject: Re: Use of VLA in struct in gcc-torture/execute/20020412-1.c
>>>>> Richard Henderson writes:
Richard> Actually, no. Think about how subsequent arguments must be
Richard> handled. I.e. foo in
Richard> void f(variable_sized v, int foo);
Richard> I remember looking at this issue for sparc64 and concluding
Richard> that it couldn't be done.
It can be handled depending on how much code wants to emit in the
caller. It always can be handled in the case where v is variable sized
but the size is known in the caller as a constant at the call site, such
as the testcase.
David