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]
Other format: [Raw text]

Re: [PATCH] - Use of powerpc 64bit instructions in 32bit ABI



On Tuesday, October 14, 2003, at 08:29 PM, David S. Miller wrote:


On Tue, 14 Oct 2003 23:28:32 -0400
David Edelsohn <dje@watson.ibm.com> wrote:

The complication is parameters passing.

Then I wonder how it "just works" on Sparc, we don't do anything special wrt. argument passing when the 64-bit instructions are enabled within the 32-bit ABI. :)


Please correct me if I am wrong. Sparc's approach is probably building the compiler in its 32bit ABI mode but
adding enough patterns to do 64bit integer arithmatic on DImode expressions. This does not require
any change in the middle-end. Our approach has been to essentially run gcc with -mpowerpc64,
assuming 64bit instructions and registers, but adding code to maintain 32bit ABI mode. Patch may be large,
but it involves mostly reorganization to put all ABI-specific code in two files (calls.c, function.c). All substantive
changes are in the three platform specific (rs6000) files.


- fj


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