2009-02-04 Paolo Bonzini <bonzini@gnu.org>
commit0eee494eebaebc082bcad4872a68b1a2ea819357
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Feb 2009 20:54:36 +0000 (4 20:54 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Feb 2009 20:54:36 +0000 (4 20:54 +0000)
tree18492e6dd523a8d915f6d21a6db7b043ec15a9dd
parent810c9e65f4b9c17b5be7fa476bf1ae9d3408ccba
2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
    Hans-Peter Nilsson  <hp@axis.com>

PR rtl-optimization/37889
* rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
Move offset handling from PLUS to before the switch.  Use new
arguments when considering SYMBOL_REFs too.
(rtx_addr_can_trap_p): Pass dummy offset and size.
(enum may_trap_p_flags): Remove.
(may_trap_p_1): Pass size from MEM_SIZE.

PR rtl-optimization/38921
* loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
* rtl.h (may_trap_after_code_motion_p): Delete prototype.
* rtlanal.c (may_trap_after_code_motion_p): Delete.
(may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143939 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/loop-invariant.c
gcc/rtl.h
gcc/rtlanal.c