This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] S/390: stack_protect_set/test
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: krebbel1 at de dot ibm dot com (Andreas Krebbel)
- Cc: jakub at redhat dot com (Jakub Jelinek), gcc-patches at gcc dot gnu dot org
- Date: Fri, 12 Aug 2005 15:50:11 +0200 (CEST)
- Subject: Re: [PATCH] S/390: stack_protect_set/test
Andreas Krebbel wrote:
> 2005-07-11 Andreas Krebbel <krebbel1@de.ibm.com>
> Jakub Jelinek <jakub@redhat.com>
>
> * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
> * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
> * config/s390/s390.c (print_operand): New output modifier 'G' added.
> (get_thread_pointer): Renamed to s390_get_thread_pointer.
> * config/s390/s390.md (stack_protect_set, stack_protect_test): If
> TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
> (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
> (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 insn definitions.
As we didn't find anything more efficient, I've now applied this
version of the patch. Thanks!
Bye,
Ulrich
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com