diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-30 22:00:28 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-30 22:00:28 +0000 |
commit | 0c3a5ef69136cd2b1ed405fdfb7be4069d24ae0f (patch) | |
tree | e9143362523d9ba8243ee089723d2b1ee9ef5754 /gcc/function.c | |
parent | 19bcc4242224959c27d42d3675f678d6dc12b4a8 (diff) | |
download | gcc-0c3a5ef69136cd2b1ed405fdfb7be4069d24ae0f.tar.gz |
PR target/50725
* function.c (thread_prologue_and_epilogue_insns): If
stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE
regset.
* gcc.target/i386/pr50725.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181860 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index 6cf67c036d2..fa9236ce4b8 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5893,6 +5893,9 @@ thread_prologue_and_epilogue_insns (void) if (pic_offset_table_rtx) add_to_hard_reg_set (&set_up_by_prologue, Pmode, PIC_OFFSET_TABLE_REGNUM); + if (stack_realign_drap && crtl->drap_reg) + add_to_hard_reg_set (&set_up_by_prologue, GET_MODE (crtl->drap_reg), + REGNO (crtl->drap_reg)); /* We don't use a different max size depending on optimize_bb_for_speed_p because increasing shrink-wrapping |