This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Stack protector ppc/ppc64 support
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, etoh at jp dot ibm dot com, arjanv at redhat dot com, drepper at redhat dot com
- Date: Sun, 26 Jun 2005 16:42:31 -0700
- Subject: Re: [PATCH] Stack protector ppc/ppc64 support
- References: <20050624225728.GP22349@devserv.devel.redhat.com>
On Fri, Jun 24, 2005 at 06:57:28PM -0400, Jakub Jelinek wrote:
> * function.c (stack_protect_epilogue): Pass label to
> stack_protect_test, assume it emitted also the conditional
> branch.
> * doc/md.texi (stack_protect_test): Adjust documentation.
> * config/i386/i386.md (stack_protect_test): Add third argument,
> emit beq with operands[2].
> * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
> flag_stack_protect != 0.
> * config/rs6000/rs6000.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
> constants.
> (stack_protect_set, stack_protect_test): New expanders.
> (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
> stack_protect_testdi): New insns.
> * config/rs6000/rs6000.c (rs6000_stack_protect_fail): New function.
> (TARGET_STACK_PROTECT_FAIL): Define.
> (rs6000_generate_compare): Handle UNSPEC_SP_TEST.
Ok.
r~