Command line:
$ CC=g++
$ FLAGS="-O1 -freorder-blocks-and-partition -fnon-call-exceptions"
$ $CC $FLAGS testcase.C -fprofile-generate
$ rm *.gcda
$ ./a.out
$ $CC $FLAGS testcase.C -fprofile-use
testcase.C: In function 'int main()':
testcase.C:14:1: internal compiler error: in convert_to_eh_region_ranges, at
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.

Tested revisions:
r163921 - crash
r153685 - crash
4.5 r163761 - crash
4.4 r160770 - warns

The 4.4 warning looks like:
cc1plus: note: -freorder-blocks-and-partition does not work with exceptions

           Summary: [4.5/4.6 Regression] ICE: in
                    convert_to_eh_region_ranges, at except.c:2446 with -
                    freorder-blocks-and-partition -fnon-call-exceptions -
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu

Reply via email to