This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/33920] [4.3 Regression] Segfault in combine_blocks/tree-if-conv.c



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]