[Bug target/66754] [4.9/5/6] gcc.dg/builtin-apply2.c aborts with -m32 -mregparm=3 or -miamcu

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 3 18:38:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66754

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
extern void foo (char *name, double d, double e, double f, int g);

void
bar (char *name, ...)
{
  __builtin_apply(foo, __builtin_apply_args(), 64);
}

is miscompiled.  IA MCU passes everything on stack for vararg functions.



More information about the Gcc-bugs mailing list