diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-11-25 12:14:05 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2016-04-16 07:47:40 -0700 |
commit | 45e9334d8ae95ab3724811c7d712a627dee5b5cd (patch) | |
tree | fd880d8ec475d9ca8c3c9155c594f3915d5b5a84 /gcc/config/rs6000/xilinx.h | |
parent | 2ca55c0355be5423cbf253fe5c2b3d14afbebe81 (diff) | |
download | gcc-45e9334d8ae95ab3724811c7d712a627dee5b5cd.tar.gz |
Update TARGET_FUNCTION_INCOMING_ARG documentation
On x86, interrupt handlers are only called by processors which push
interrupt data onto stack at the address where the normal return address
is. Since interrupt handlers must access interrupt data via pointers so
that they can update interrupt data, the pointer argument is passed as
"argument pointer - word".
TARGET_FUNCTION_INCOMING_ARG defines how callee sees its argument.
Normally it returns REG, NULL, or CONST_INT. This patch adds arbitrary
address computation based on hard register, which can be forced into a
register, to the list.
When copying an incoming argument onto stack, assign_parm_setup_stack
has:
if (argument in memory)
copy argument in memory to stack
else
move argument to stack
Since an arbitrary address computation may be passed as an argument, we
change it to:
if (argument in memory)
copy argument in memory to stack
else
{
if (argument isn't in register)
force argument into a register
move argument to stack
}
* function.c (assign_parm_setup_stack): Force source into a
register if needed.
* target.def (function_incoming_arg): Update documentation to
allow arbitrary address computation based on hard register.
* doc/tm.texi: Regenerated.
Diffstat (limited to 'gcc/config/rs6000/xilinx.h')
0 files changed, 0 insertions, 0 deletions