[Bug tree-optimization/48794] [4.7 Regression] ICE: SIGSEGV in remap_eh_region_nr (tree-inline.c:1194) with -Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop

matz at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 25 15:37:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48794

Michael Matz <matz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |matz at gcc dot gnu.org
         Resolution|FIXED                       |

--- Comment #6 from Michael Matz <matz at gcc dot gnu.org> 2012-01-25 15:13:35 UTC ---
This testcase still segfaults in the same way.  The problem this time is
in removing regions without landing pads (remove_unreachable_handlers_no_lp),
which also happily removes regions that still are referenced by resx
instructions.

% cat pr48794-2.f90
! PR tree-optimization/48794
! { dg-do compile }
! { dg-options "-Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop" }

  integer, allocatable :: a(:)
  integer :: b(48)
  logical :: l
  if (allocated (a)) then
    call abort
    call bla(b)
  end if
!$omp parallel private (a) reduction (.or.:l)
  do i = 1, 7
  end do
!$omp end parallel
end

% ./gcc/f951 -Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop
pr48794-2.f90
pr48794-2.f90: In function ‘main’:
pr48794-2.f90:16:0: internal compiler error: Segmentation fault



More information about the Gcc-bugs mailing list