This is the mail archive of the gcc@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: 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


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