This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Go in gcc 4.7
- From: Dennis Clarke <dclarke at blastwave dot org>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: dclarke at blastwave dot org, 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 06:51:26 -0500 (EST)
- Subject: Re: Go in gcc 4.7
- Reply-to: dclarke at blastwave dot 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.
To be more compliant with IEEE Std 1003.1-2001 ( ISO/IEC 9899:1999
standard, Section 6.2.5 ) they should be int32_t or similar as
per stdint.h.
But hey, I was just thinking out loud and more concerned about a
functional go compiler in gcc 4.7 RC. I am currently digging around
in snapshots 4.7-20120107.
Dennis
--
--
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x1D936C72FA35B44B
+-------------------------+-----------------------------------+
| Dennis Clarke | Solaris and Linux and Open Source |
| dclarke@blastwave.org | Respect for open standards. |
+-------------------------+-----------------------------------+