This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PowerPC TOC/GOT constants
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: PowerPC TOC/GOT constants
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Fri, 09 Feb 2001 20:55:59 +0100
- CC: gcc-patches at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <200102090323.WAA36848@mal-ach.watson.ibm.com>
David Edelsohn wrote:
> The following patch fixes the PowerPC port handling of constants
> stored in the TOC and GOT by aligning them properly. This mainly affect
> Fortran which passes constants by reference and GCC places those constants
> directly in the TOC/GOT.
<heh> <heh> ...
I never understood why you can't do
main()
{
int n = foo(&1287391739798);
....
}
in C anyway :-)
[ Heck, the VAX even has an instruction to do that:
PUSHAL #^I1287391739798
CALLS ....
:-) ]
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)