[PATCH][ARM] PR 62066: Call va_end on early return from va_list processing function
Ramana Radhakrishnan
ramana.radhakrishnan@arm.com
Fri Jan 16 17:26:00 GMT 2015
On 16/01/15 16:56, Kyrill Tkachov wrote:
> Hi all,
>
> As the simple PR says we should call va_end before returning early from
> a function that started processing the va_list with va_start.
> The C spec agrees:
> "Each invocation of the va_start and va_copy macros
> shall be matched by a corresponding invocation of the va_end macro in
> the same
> function."
>
> Tested arm-none-eabi.
>
> Ok for trunk?
OK.
Thanks,
Ramana
>
> Thanks,
> Kyrill
>
> 2014-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
>
> PR target/62066
> * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
> early return 0.
>
More information about the Gcc-patches
mailing list