[Bug target/16000] for h8 targets variadic functions are not working properly
bonzini at gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 15 15:26:00 GMT 2004
------- Additional Comments From bonzini at gnu dot org 2004-06-15 15:26 -------
Graham is right. This is a problem in user code, unless this fails as well...
int variadic_test (int, unsigned long, unsigned long);
int main (void)
{
int result_varfunc;
int result_local;
result_local = 1 + 2 + 3;
result_varfunc = variadic_test(1, 2, 3);
if (result_local != result_varfunc) {
//printf("error");
return 0;
} else
return 1;
}
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16000
More information about the Gcc-bugs
mailing list