Commit 2480f2ca by Uros Bizjak

gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.

	* config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
	when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
	* config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.

From-SVN: r195895
parent 76ef61fb
2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com> 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
* config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
(microblaze*-*-elf): Likewise when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
* config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
LINK_SPEC
* config/microblaze/microblaze-c.c: Add builtin defines for _LITTLE_ENDIAN 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
and _BIG_ENDIAN
* config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and add to * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
TARGET_DEFAULT flags. (microblaze*-*-elf): Likewise.
* config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
LINK_SPEC.
* config/microblaze/microblaze-c.c: Add builtin defines for
_LITTLE_ENDIAN and _BIG_ENDIAN.
* config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
add to TARGET_DEFAULT flags.
Expand ASM_SPEC and LINK_SPEC. Expand ASM_SPEC and LINK_SPEC.
Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
* config/microblaze/microblaze.md: Update extendsidi2 and movdi_internal * config/microblaze/microblaze.md: Update extendsidi2 and
instructions to use low-order / high-order reg print_operands movdi_internal instructions to use low-order / high-order reg
* config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian print_operands.
options and inversemask / mask of LITTLE_ENDIAN * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
* config/microblaze/t-microblaze: Expand multilib options to include mlittle- options and inversemask / mask of LITTLE_ENDIAN.
endian (le) and update exceptions patterns * config/microblaze/t-microblaze: Expand multilib options to
include mlittle-endian (le) and update exceptions patterns.
2013-02-08 Jakub Jelinek <jakub@redhat.com> 2013-02-08 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/56195 PR rtl-optimization/56195
......
...@@ -154,7 +154,11 @@ along with GCC; see the file COPYING3. If not see ...@@ -154,7 +154,11 @@ along with GCC; see the file COPYING3. If not see
/* i386 glibc provides __stack_chk_guard in %gs:0x14. */ /* i386 glibc provides __stack_chk_guard in %gs:0x14. */
#define TARGET_THREAD_SSP_OFFSET 0x14 #define TARGET_THREAD_SSP_OFFSET 0x14
/* We steal the last transactional memory word. */ /* We only build the -fsplit-stack support in libgcc if the
assembler has full support for the CFI directives. */
#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
#define TARGET_CAN_SPLIT_STACK #define TARGET_CAN_SPLIT_STACK
#endif
/* We steal the last transactional memory word. */
#define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30 #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
#endif #endif
...@@ -85,8 +85,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -85,8 +85,12 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define TARGET_THREAD_SSP_OFFSET \ #define TARGET_THREAD_SSP_OFFSET \
(TARGET_64BIT ? (TARGET_X32 ? 0x18 : 0x28) : 0x14) (TARGET_64BIT ? (TARGET_X32 ? 0x18 : 0x28) : 0x14)
/* We steal the last transactional memory word. */ /* We only build the -fsplit-stack support in libgcc if the
assembler has full support for the CFI directives. */
#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE
#define TARGET_CAN_SPLIT_STACK #define TARGET_CAN_SPLIT_STACK
#endif
/* We steal the last transactional memory word. */
#define TARGET_THREAD_SPLIT_STACK_OFFSET \ #define TARGET_THREAD_SPLIT_STACK_OFFSET \
(TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30) (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment