From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21648 invoked by alias); 14 Jul 2009 09:33:51 -0000 Received: (qmail 21103 invoked by alias); 14 Jul 2009 09:33:19 -0000 Date: Tue, 14 Jul 2009 09:33:00 -0000 Message-ID: <20090714093319.21102.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/37889] [4.3 Regression] SEGV, conditional execution proactively executed the false arm. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg01090.txt.bz2 ------- Comment #21 from rguenth at gcc dot gnu dot org 2009-07-14 09:33 ------- Subject: Bug 37889 Author: rguenth Date: Tue Jul 14 09:32:55 2009 New Revision: 149620 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149620 Log: 2009-07-14 Richard Guenther Backport from mainline 2009-02-05 Paolo Bonzini PR rtl-optimization/39110 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned addresses, not aligned ones. 2009-02-04 Paolo Bonzini Hans-Peter Nilsson 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. Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/loop-invariant.c branches/gcc-4_3-branch/gcc/rtl.h branches/gcc-4_3-branch/gcc/rtlanal.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37889