From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3041 invoked by alias); 28 Jan 2008 15:22:07 -0000 Received: (qmail 2681 invoked by uid 48); 28 Jan 2008 15:21:23 -0000 Date: Mon, 28 Jan 2008 16:20:00 -0000 Subject: [Bug rtl-optimization/34999] New: Fallthru crossing edges in partition_hot_cold_basic_blocks are not been fixed when the section ends with call insn X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "eres at il dot ibm dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg03431.txt.bz2 I run built-in-setjmp.c testcase (taken from gcc.c-torture/execute dir); first with -fprofile-generate -freorder-blocks-and-partition and then with -fprofile-use -freorder-blocks-and-partition under x86_64 and ppc64-linux with r131883 mainline and I get the ICE: vn/build/build/spu/gcc/gcc/testsuite/gcc/built-in-setjmp.c -fprofile-use -freorder-blocks-and-partition ../gcc/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c: In function âmainâ: ../gcc/gcc/testsuite/gcc.c-torture/execute/built-in-setjmp.c:39: internal compiler error: in add_labels_and_missing_jumps, at bb-reorder.c:1304 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. The code for fixing up fallthru edges that cross between hot and cold sections is in add_labels_and_missing_jumps () and fix_up_fall_thru_edges () functions. The first function deals with fallthru edges with single successor and the later deals with fallthru edges with more than one successor. It seems that the cause to this fail is because both of the functions do not take into account the fact that a basic-block with a crossing edge can end with a call insn. I am working to fix that. -- Summary: Fallthru crossing edges in partition_hot_cold_basic_blocks are not been fixed when the section ends with call insn Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eres at il dot ibm dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34999