summaryrefslogtreecommitdiff
path: root/gcc/reorg.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-11 09:00:42 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-11 09:00:42 +0000
commitf04219380292536160b6c792c0410e2fc737a298 (patch)
treec14fb082dc2ec8626408c0b4f1957808cdcc043f /gcc/reorg.c
parentee7ee34da786c135cf0415c99f204e7e6b5cafc3 (diff)
downloadgcc-f04219380292536160b6c792c0410e2fc737a298.tar.gz
gcc/
PR rtl-optimization/52175 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization to frame-related instructions. gcc/testsuite/ PR rtl-optimization/52175 * gcc.c-torture/compile/pr52175.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184128 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r--gcc/reorg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 3fa53939d5e..dfc9747c5f7 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -2937,6 +2937,7 @@ fill_slots_from_thread (rtx insn, rtx condition, rtx thread,
if (delay_list == 0 && likely
&& new_thread && !ANY_RETURN_P (new_thread)
&& NONJUMP_INSN_P (new_thread)
+ && !RTX_FRAME_RELATED_P (new_thread)
&& GET_CODE (PATTERN (new_thread)) != ASM_INPUT
&& asm_noperands (PATTERN (new_thread)) < 0)
{