This is the mail archive of the gcc-patches@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]

PR middle-end/40388 (NULL pointer ICE in EH)


Hi,
the testcase in PR triggers ICE on NULL aka bitmap in
can_be_reached_by_runtime.  I've bootstrapped/retested/comitted the
following obvious fix (x86_64-linux)

Honza

Index: ChangeLog
===================================================================
*** ChangeLog	(revision 149515)
--- ChangeLog	(working copy)
***************
*** 1,3 ****
--- 1,8 ----
+ 2009-07-11  Jan Hubicka  <jh@suse.cz>
+ 
+ 	PR middle-end/48388
+ 	* except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
+ 
  2009-07-11  Jakub Jelinek  <jakub@redhat.com>
  
  	PR debug/40713
Index: testsuite/ChangeLog
===================================================================
*** testsuite/ChangeLog	(revision 149515)
--- testsuite/ChangeLog	(working copy)
***************
*** 1,3 ****
--- 1,8 ----
+ 2009-07-11  Jan Hubicka  <jh@suse.cz>
+ 
+ 	PR middle-end/48388
+ 	* g++.dg/torture/pr40388.C: New testcase.
+ 
  2009-07-11  Jakub Jelinek  <jakub@redhat.com>
  
  	PR target/40668
Index: except.c
===================================================================
*** except.c	(revision 149515)
--- except.c	(working copy)
*************** can_be_reached_by_runtime (sbitmap conta
*** 565,571 ****
        if (i->type != ERT_MUST_NOT_THROW)
  	{
  	  bool found = TEST_BIT (contains_stmt, i->region_number);
! 	  if (!found)
  	    EXECUTE_IF_SET_IN_BITMAP (i->aka, 0, n, bi)
  	      if (TEST_BIT (contains_stmt, n))
  	      {
--- 565,571 ----
        if (i->type != ERT_MUST_NOT_THROW)
  	{
  	  bool found = TEST_BIT (contains_stmt, i->region_number);
! 	  if (!found && i->aka)
  	    EXECUTE_IF_SET_IN_BITMAP (i->aka, 0, n, bi)
  	      if (TEST_BIT (contains_stmt, n))
  	      {


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