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]

__builtin_apply fails on Sparc



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


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