This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/65823] [6 Regression] ICE in gcc.c-torture/execute/stdarg-2.c -O0/-O1 for arm


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]));
}
...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]