Commit bed9e870 by Oleg Endo Committed by Kaz Kojima

re PR target/52503 (sh-wrs-vxworks: too many target masks)

	PR target/52503
	* config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
	* config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
	(SUBTARGET_OVERRIDE_OPTIONS): Define.


Co-Authored-By: Kaz Kojima <kkojima@gcc.gnu.org>

From-SVN: r185081
parent d111e30e
2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
Kaz Kojima <kkojima@gcc.gnu.org>
PR target/52503
* config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
* config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
(SUBTARGET_OVERRIDE_OPTIONS): Define.
2012-03-07 Uros Bizjak <ubizjak@gmail.com> 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
* config/i386/predicates.md (x86_64_zext_general_operand): New. * config/i386/predicates.md (x86_64_zext_general_operand): New.
......
/* Definitions for SH running Linux-based GNU systems using ELF /* Definitions for SH running Linux-based GNU systems using ELF
Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2010, 2011 Copyright (C) 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2010, 2011,
2012
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp> Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
...@@ -41,7 +42,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -41,7 +42,7 @@ along with GCC; see the file COPYING3. If not see
#undef TARGET_DEFAULT #undef TARGET_DEFAULT
#define TARGET_DEFAULT \ #define TARGET_DEFAULT \
(TARGET_CPU_DEFAULT | MASK_USERMODE | TARGET_ENDIAN_DEFAULT \ (TARGET_CPU_DEFAULT | MASK_USERMODE | TARGET_ENDIAN_DEFAULT \
| TARGET_OPT_DEFAULT | MASK_SOFT_ATOMIC) | TARGET_OPT_DEFAULT)
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
...@@ -135,3 +136,13 @@ along with GCC; see the file COPYING3. If not see ...@@ -135,3 +136,13 @@ along with GCC; see the file COPYING3. If not see
/* Install the __sync libcalls. */ /* Install the __sync libcalls. */
#undef TARGET_INIT_LIBFUNCS #undef TARGET_INIT_LIBFUNCS
#define TARGET_INIT_LIBFUNCS sh_init_sync_libfuncs #define TARGET_INIT_LIBFUNCS sh_init_sync_libfuncs
#undef SUBTARGET_OVERRIDE_OPTIONS
#define SUBTARGET_OVERRIDE_OPTIONS \
do \
{ \
/* Defaulting to -msoft-atomic. */ \
if (global_options_set.x_TARGET_SOFT_ATOMIC == 0) \
TARGET_SOFT_ATOMIC = 1; \
} \
while (0)
...@@ -320,7 +320,7 @@ Target Mask(HITACHI) MaskExists ...@@ -320,7 +320,7 @@ Target Mask(HITACHI) MaskExists
Follow Renesas (formerly Hitachi) / SuperH calling conventions Follow Renesas (formerly Hitachi) / SuperH calling conventions
msoft-atomic msoft-atomic
Target Report Mask(SOFT_ATOMIC) Target Report Var(TARGET_SOFT_ATOMIC)
Use software atomic sequences supported by kernel Use software atomic sequences supported by kernel
menable-tas menable-tas
......
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