This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33920] [4.3 Regression] Segfault in combine_blocks/tree-if-conv.c
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2007 17:20:30 -0000
- Subject: [Bug tree-optimization/33920] [4.3 Regression] Segfault in combine_blocks/tree-if-conv.c
- References: <bug-33920-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ubizjak at gmail dot com 2007-10-27 17:20 -------
(In reply to comment #3)
> 20070916 is ok, 20071020 shows the segfault.
Patch in testing:
Index: tree-if-conv.c
===================================================================
--- tree-if-conv.c (revision 129683)
+++ tree-if-conv.c (working copy)
@@ -724,7 +724,8 @@ find_phi_replacement_condition (struct l
/* Select condition that is not TRUTH_NOT_EXPR. */
tmp_cond = (first_edge->src)->aux;
- if (TREE_CODE (tmp_cond) == TRUTH_NOT_EXPR)
+ if (tmp_cond != NULL_TREE
+ && TREE_CODE (tmp_cond) == TRUTH_NOT_EXPR)
{
edge tmp_edge;
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ubizjak at gmail dot com
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-10-27 17:20:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33920