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 middle-end/45458] New: [4.6 Regression] ICE: in add_labels_and_missing_jumps, at bb-reorder.c:1306 with-fnon-call-exceptions -freorder-blocks-and-partition -fprofile-use


Command line:
$ g++ testcase.C -fnon-call-exceptions -freorder-blocks-and-partition
-fprofile-generate
$ rm *.gcda
$ ./a.out
$ g++ testcase.C -fnon-call-exceptions -freorder-blocks-and-partition
-fprofile-use

Compiler output:
$ g++ testcase.C -fnon-call-exceptions -freorder-blocks-and-partition
-fprofile-use
testcase.C: In function 'int main()':
testcase.C:10:1: internal compiler error: in add_labels_and_missing_jumps, at
bb-reorder.c:1306
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.

With -O1, gcc crashes with the original testcase:
/mnt/svn/gcc-trunk/gcc/testsuite/g++.dg/tree-prof/partition1.C: In function
'int bar(int)':
/mnt/svn/gcc-trunk/gcc/testsuite/g++.dg/tree-prof/partition1.C:19:1: internal
compiler error: in convert_to_eh_region_ranges, at except.c:2446
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Older versions warned with:
cc1plus: note: -freorder-blocks-and-partition does not work with exceptions

Tested revisions:
r163636 - crash
r158095 - crash
r153685 - crash
4.4 r154975 - warns
4.4 r160770 - warns


-- 
           Summary: [4.6 Regression] ICE: in add_labels_and_missing_jumps,
                    at bb-reorder.c:1306 with-fnon-call-exceptions -
                    freorder-blocks-and-partition -fprofile-use
           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


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


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