This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ARM64 va_list
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Nicholas Robert Kemp <nrkemp at myseneca dot ca>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Tue, 18 Mar 2014 11:05:18 -0700
- Subject: Re: ARM64 va_list
- Authentication-results: sourceware.org; auth=none
- References: <6e55b033d44d424e91022e0bb13dc663 at BY2PR07MB123 dot namprd07 dot prod dot outlook dot com>
On Tue, Mar 18, 2014 at 10:50 AM, Nicholas Robert Kemp
<nrkemp@myseneca.ca> wrote:
>
>
> Hi,
> I've been porting some software to arm64 and one of their test suites uses va_list as an argument in their function call and I get an error regarding that function when I compile. I was just wondering if va_list has been ported to arm64 yet.
It has. Because otherwise even printf/vprintf would fail. What is
the error message you are getting? Also does the code depend on
va_list being an array, on aarch64, it is defined as struct (AAPCS64
\S 7.1.4).
>From the aarch64 back-end:
AAPCS64 \S 7.1.4 requires that va_list be a typedef for a type defined as:
struct __va_list
{
void *__stack;
void *__gr_top;
void *__vr_top;
int __gr_offs;
int __vr_offs;
};
Thanks,
Andrew Pinski
> Thanks
> Nick Kemp
>
>