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: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: rth at redhat dot com (Richard Henderson)
- Cc: dje at watson dot ibm dot com, gcc at gcc dot gnu dot org
- Date: Sat, 7 Sep 2002 23:36:00 -0400 (EDT)
- Subject: Re: Use of VLA in struct in gcc-torture/execute/20020412-1.c
> Not exactly correct. It also works on ABIs for which variable
> sized arrays are always passed on the stack (and never in registers).
Why never in registers? In the PA64 ABI, the registers mirror the
stack and the callee can save the registers to the stack if it wants.
The same is also true for the 32-bit ABI.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)