always define DYNAMIC_CHAIN_ADDRESS
gcc/ChangeLog: 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition. * builtins.c (expand_builtin_return_addr): Adjust. From-SVN: r228687
This commit is contained in:
parent
baf37960f6
commit
f407dfe985
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
|
||||
|
||||
* defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
|
||||
* builtins.c (expand_builtin_return_addr): Adjust.
|
||||
|
||||
2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
|
||||
|
||||
* defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
|
||||
|
|
|
@ -799,9 +799,7 @@ expand_builtin_return_addr (enum built_in_function fndecl_code, int count)
|
|||
{
|
||||
/* Assume the dynamic chain pointer is in the word that the
|
||||
frame address points to, unless otherwise specified. */
|
||||
#ifdef DYNAMIC_CHAIN_ADDRESS
|
||||
tem = DYNAMIC_CHAIN_ADDRESS (tem);
|
||||
#endif
|
||||
tem = memory_address (Pmode, tem);
|
||||
tem = gen_frame_mem (Pmode, tem);
|
||||
tem = copy_to_reg (tem);
|
||||
|
|
|
@ -1285,6 +1285,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#define SETUP_FRAME_ADDRESSES() do { } while (0)
|
||||
#endif
|
||||
|
||||
#ifndef DYNAMIC_CHAIN_ADDRESS
|
||||
#define DYNAMIC_CHAIN_ADDRESS(x) (x)
|
||||
#endif
|
||||
|
||||
#ifdef GCC_INSN_FLAGS_H
|
||||
/* Dependent default target macro definitions
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue