From c9da2ae8abcb55f016788007ed70f73c39775397 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 9 Jan 2009 21:03:37 +0100 Subject: [PATCH] i386.c (ix86_expand_movmem, [...]): Add zero guard even if align_bytes != 0 and count is smaller than size_needed. * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add zero guard even if align_bytes != 0 and count is smaller than size_needed. From-SVN: r143229 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d7cebcfcb3f..0f0331a5bf0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-01-09 Jakub Jelinek + + * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add + zero guard even if align_bytes != 0 and count is smaller than + size_needed. + 2008-01-09 Vladimir Makarov PR rtl-optimization/38495 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index f44667fffc2..b5fea236db2 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -17720,7 +17720,7 @@ ix86_expand_movmem (rtx dst, rtx src, rtx count_exp, rtx align_exp, count -= align_bytes; } if (need_zero_guard - && (!count + && (count < (unsigned HOST_WIDE_INT) size_needed || (align_bytes == 0 && count < ((unsigned HOST_WIDE_INT) size_needed + desired_align - align)))) @@ -18112,7 +18112,7 @@ ix86_expand_setmem (rtx dst, rtx count_exp, rtx val_exp, rtx align_exp, count -= align_bytes; } if (need_zero_guard - && (!count + && (count < (unsigned HOST_WIDE_INT) size_needed || (align_bytes == 0 && count < ((unsigned HOST_WIDE_INT) size_needed + desired_align - align)))) -- 2.30.2