This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37395] [4.4 Regression] Bootstrap fails in stage 2 due to segfault compiling c-parser
- From: "nemet at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2008 21:46:02 -0000
- Subject: [Bug target/37395] [4.4 Regression] Bootstrap fails in stage 2 due to segfault compiling c-parser
- References: <bug-37395-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from nemet at gcc dot gnu dot org 2008-09-11 21:46 -------
It's caused by this http://gcc.gnu.org/ml/gcc-patches/2008-08/msg02376.html.
In this hunk:
@@ -1901,7 +1904,8 @@ noce_try_sign_mask (struct noce_if_info
INSN_B which can happen for e.g. conditional stores to memory. */
b_unconditional = (if_info->insn_b == NULL_RTX
|| BLOCK_FOR_INSN (if_info->insn_b) == if_info->test_bb);
- if (rtx_cost (t, SET) >= COSTS_N_INSNS (2)
+ if (rtx_cost (t, SET, optimize_bb_for_speed_p (BLOCK_FOR_INSN
(if_info->insn_b)))
+ >= COSTS_N_INSNS (2)
&& (!b_unconditional
|| t != if_info->b))
return FALSE;
if_info->insn_b is allowed to be null.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37395