This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Go in gcc 4.7
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: dclarke at blastwave dot org
- Cc: Ian Lance Taylor <iant at google dot com>, Joel Sherrill <joel dot sherrill at oarcorp dot com>, Rainer Orth <ro at cebitec dot uni-bielefeld dot de>, "gcc\ at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "gofrontend-dev\ at googlegroups dot com" <gofrontend-dev at googlegroups dot com>
- Date: Fri, 13 Jan 2012 10:22:45 +0100
- Subject: Re: Go in gcc 4.7
- References: <53360.10.0.66.17.1326403782.squirrel@interact.purplecow.org>
Dennis Clarke <dclarke@blastwave.org> writes:
> for (argno = 0; argno < argc; argno++) {
> if (argno < 6)
> *tsp++ = reg[REG_O0 + argno] = va_arg(ap, long);
> else
> *tsp++ = va_arg(ap, long);
This is broken. The arguments are of type int, not long.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."