[Bug tree-optimization/65823] [6 Regression] ICE in gcc.c-torture/execute/stdarg-2.c -O0/-O1 for arm
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 21 09:20:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65823
--- Comment #4 from vries at gcc dot gnu.org ---
Minimal test-case test.c:
...
#include <stdarg.h>
long x;
void
f3 (int i, ...)
{
va_list aps[10];
va_start (aps[4], i);
x = va_arg (aps[4], long);
va_end (aps[4]);
}
...
or preprocessed:
...
typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
long x;
void
f3 (int i, ...)
{
va_list aps[10];
__builtin_va_start (aps[4], i);
x = __builtin_va_arg(aps[4], long);
__builtin_va_end(aps[4]));
}
...
More information about the Gcc-bugs
mailing list