Commit 580536aa by Jerome Lambourg Committed by Olivier Hainque

vxworks.h (DBX_REGISTER_NUMBER): Pick distinct map for 64bits.

2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
            Olivier Hainque  <hainque@adacore.com>

	* config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
	map for 64bits.
	(TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
	targets. Pick a default if no particular attempt applied.
	(STACK_CHECK_PROTECT): Double for 64bit targets, which have
	larger contexts.


Co-Authored-By: Olivier Hainque <hainque@adacore.com>

From-SVN: r249690
parent 50567938
2017-06-27 Jerome Lambourg <lambourg@adacore.com> 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
Olivier Hainque <hainque@adacore.com>
* config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
map for 64bits.
(TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
targets. Pick a default if no particular attempt applied.
(STACK_CHECK_PROTECT): Double for 64bit targets, which have
larger contexts.
2017-06-27 Jerome Lambourg <lambourg@adacore.com>
* config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet. * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
(x86_64-wrs-vxworks7): Likewise. (x86_64-wrs-vxworks7): Likewise.
......
...@@ -34,7 +34,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -34,7 +34,8 @@ along with GCC; see the file COPYING3. If not see
the SVR4 numbering. */ the SVR4 numbering. */
#undef DBX_REGISTER_NUMBER #undef DBX_REGISTER_NUMBER
#define DBX_REGISTER_NUMBER(n) svr4_dbx_register_map[n] #define DBX_REGISTER_NUMBER(n) \
(TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
#define TARGET_OS_CPP_BUILTINS() \ #define TARGET_OS_CPP_BUILTINS() \
do \ do \
...@@ -59,7 +60,11 @@ along with GCC; see the file COPYING3. If not see ...@@ -59,7 +60,11 @@ along with GCC; see the file COPYING3. If not see
builtin_define ("CPU=PENTIUM4"); \ builtin_define ("CPU=PENTIUM4"); \
builtin_define ("CPU_VARIANT=PENTIUM4"); \ builtin_define ("CPU_VARIANT=PENTIUM4"); \
} \ } \
} \ else if (TARGET_64BIT) \
builtin_define ("CPU=X86_64"); \
else \
builtin_define ("CPU=I80386"); \
} \
while (0) while (0)
#undef CPP_SPEC #undef CPP_SPEC
...@@ -91,5 +96,10 @@ along with GCC; see the file COPYING3. If not see ...@@ -91,5 +96,10 @@ along with GCC; see the file COPYING3. If not see
#define STACK_CHECK_STATIC_BUILTIN 1 #define STACK_CHECK_STATIC_BUILTIN 1
/* This platform supports the probing method of stack checking (RTP mode). /* This platform supports the probing method of stack checking (RTP mode).
8K is reserved in the stack to propagate exceptions in case of overflow. */ 8K is reserved in the stack to propagate exceptions in case of overflow.
On 64-bit targets, we double that size. */
#if TARGET_64BIT_DEFAULT
#define STACK_CHECK_PROTECT 16384
#else
#define STACK_CHECK_PROTECT 8192 #define STACK_CHECK_PROTECT 8192
#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