This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] ppc64: move crt3.o makefile fragments, 64-bit call patterns
- From: Dale Johannesen <dalej at apple dot com>
- To: Stuart Hastings <stuart at apple dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Geoffrey Keating <gkeating at apple dot com>
- Date: Thu, 13 Apr 2006 12:12:27 -0700
- Subject: Re: [patch] ppc64: move crt3.o makefile fragments, 64-bit call patterns
- References: <BE64D8D6-D6D5-42C8-81E2-05FD4AD6B8A0@apple.com>
On Apr 13, 2006, at 12:03 PM, Stuart Hastings wrote:
A mechanical patch to build the Darwin-specific "crt3.o" with -
mlongcall ("far" calls for Darwin/ppc).
Alas, that broke the bootstrap. This necessitated some 64-bit CALL
patterns for Darwin/ppc. Inside rs6000.md, renamed the existing
"call_*_nonlocal_sysv" to "call_*_nonlocal_sysv32" and added
"call_*_nonlocal_sysv64" in the obvious way; the "64" versions have
DI operands under their memrefs.
Bootstrapped and DejaGnu-ed on Darwin/ppc, no regressions.
2006-04-13 Stuart Hastings <stuart@apple.com>
* config/t-darwin (crt3.o): Moved from here...
* config/i386/t-darwin (crt3.o): ...to here...
* config/rs6000/t-darwin (crt3.o): ...and here, adding -
mlongcall.
* config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
call_value_nonlocal_sysv): Appended "32" to names.
(call_indirect_nonlocal_sysv64, call_nonlocal_sysv64,
call_value_indirect_nonlocal_sysv64,
call_value_nonlocal_sysv64):
New.
I don't think you need new patterns. Looks like a good spot for
mode_macro P.