__builtin_apply fails on Sparc

Marcus G. Daniels mgd@santafe.edu
Wed Aug 12 12:08:00 GMT 1998


On sparc-sun-solaris2.6, for both gcc-2.8.1 and egcs-1.0.2, this program
results in an illegal instruction:

void *buf;
int exit_code = 0;

void callme (void)
{
  buf = __builtin_apply_args ();
  exit_code = 0;
}


main ()
{
  callme ();
  exit_code = 1;
  __builtin_apply (callme, buf, 0);
  exit (exit_code);
} 



More information about the Gcc-bugs mailing list