This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16000] for h8 targets variadic functions are not working properly
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2004 15:26:38 -0000
- Subject: [Bug target/16000] for h8 targets variadic functions are not working properly
- References: <20040615140513.16000.manishas@kpitcummins.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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