This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/65823] [6 Regression] ICE in gcc.c-torture/execute/stdarg-2.c -O0/-O1 for arm
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Apr 2015 09:20:14 +0000
- Subject: [Bug tree-optimization/65823] [6 Regression] ICE in gcc.c-torture/execute/stdarg-2.c -O0/-O1 for arm
- Auto-submitted: auto-generated
- References: <bug-65823-4 at http dot gcc dot gnu dot org/bugzilla/>
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]));
}
...