summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 22:58:21 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 22:58:21 +0000
commit392a7dd5052ad49c74fad8cb393adf6b743a708e (patch)
treeb35bb3a85e5aec4da27a655e309cea9f2dfabc15 /gcc/function.c
parent8aaf42236e396c5e927b071bc5647dd9c06e33aa (diff)
downloadgcc-392a7dd5052ad49c74fad8cb393adf6b743a708e.tar.gz
PR target/55940
* function.c (thread_prologue_and_epilogue_insns): Always add crtl->drap_reg to set_up_by_prologue.set, even if stack_realign_drap is false. * gcc.dg/pr55940.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195220 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 37ac7d2c0d6..bb6a9ae9979 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -6029,7 +6029,7 @@ thread_prologue_and_epilogue_insns (void)
if (pic_offset_table_rtx)
add_to_hard_reg_set (&set_up_by_prologue.set, Pmode,
PIC_OFFSET_TABLE_REGNUM);
- if (stack_realign_drap && crtl->drap_reg)
+ if (crtl->drap_reg)
add_to_hard_reg_set (&set_up_by_prologue.set,
GET_MODE (crtl->drap_reg),
REGNO (crtl->drap_reg));