diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/rtlanal.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2462303..a8d6685 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index cc7775f..e39dea2 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -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) |