This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PowerPC TOC/GOT constants


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]