public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
@ 2008-01-28 16:20 eres at il dot ibm dot com
  2008-01-28 16:28 ` [Bug rtl-optimization/34999] " eres at il dot ibm dot com
                   ` (28 more replies)
  0 siblings, 29 replies; 30+ messages in thread
From: eres at il dot ibm dot com @ 2008-01-28 16:20 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1721 bytes --]

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 <http://gcc.gnu.org/bugs.html> 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


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2009-12-01 15:16 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-28 16:20 [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 eres at il dot ibm dot com
2008-01-28 16:28 ` [Bug rtl-optimization/34999] " eres at il dot ibm dot com
2008-01-29 17:12 ` eres at il dot ibm dot com
2008-02-27 13:29 ` revitale at gcc dot gnu dot org
2008-02-28  9:48 ` ubizjak at gmail dot com
2008-02-28 13:01 ` eres at il dot ibm dot com
2008-02-28 13:27 ` ubizjak at gmail dot com
2008-02-28 13:50 ` eres at il dot ibm dot com
2008-02-28 18:35 ` ubizjak at gmail dot com
2008-02-28 19:13 ` ubizjak at gmail dot com
2008-02-29  5:23 ` eres at il dot ibm dot com
2008-02-29  5:54 ` hjl dot tools at gmail dot com
2008-02-29  6:08 ` ubizjak at gmail dot com
2008-02-29  6:33 ` ubizjak at gmail dot com
2008-02-29  6:48 ` ubizjak at gmail dot com
2008-02-29  8:57 ` jakub at gcc dot gnu dot org
2008-03-04 14:51 ` uweigand at gcc dot gnu dot org
2008-03-04 15:10 ` jakub at gcc dot gnu dot org
2008-03-16 16:28 ` danglin at gcc dot gnu dot org
2008-04-08 11:07 ` eres at il dot ibm dot com
2008-04-08 11:14 ` jakub at gcc dot gnu dot org
2008-12-29  2:41 ` pinskia at gcc dot gnu dot org
2009-03-27 16:37 ` ghazi at gcc dot gnu dot org
2009-03-27 17:27 ` steven at gcc dot gnu dot org
2009-07-24 15:37 ` [Bug rtl-optimization/34999] Incorrect FDE entries with hot/cold code section splitting (partition_hot_cold_basic_blocks) jakub at gcc dot gnu dot org
2009-07-24 23:31 ` jakub at gcc dot gnu dot org
2009-08-06 19:54 ` ghazi at gcc dot gnu dot org
2009-09-07  1:04 ` ghazi at gcc dot gnu dot org
2009-12-01 15:14 ` ghazi at gcc dot gnu dot org
2009-12-01 15:16 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).