]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2009-02-05 Paolo Bonzini <bonzini@gnu.org>
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Feb 2009 18:29:11 +0000 (18:29 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Feb 2009 18:29:11 +0000 (18:29 +0000)
PR rtl-optimization/39110
* rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
addresses, not aligned ones.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143971 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/rtlanal.c

index 24623034bc83ccf84f0fb89c05c2846f6bd348b0..a8d6685bd628ee786186bc0de67b27c65f1a445c 100644 (file)
@@ -1,3 +1,9 @@
+2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
+
+       PR rtl-optimization/39110
+       * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
+       addresses, not aligned ones.
+
 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
            Richard Guenther  <rguenther@suse.de>
 
index cc7775ffd638f553ef1528adddef93941520fe0e..e39dea2c08c7c7daa16d131e6c91745c7ef338f6 100644 (file)
@@ -282,7 +282,8 @@ rtx_addr_can_trap_p_1 (const_rtx x, HOST_WIDE_INT offset, HOST_WIDE_INT size,
        actual_offset -= STACK_POINTER_OFFSET;
 #endif
 
-      return actual_offset % GET_MODE_SIZE (mode) != 0;
+      if (actual_offset % GET_MODE_SIZE (mode) != 0)
+       return 1;
     }
 
   switch (code)