public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/28121]  New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
@ 2006-06-21 11:02 tbm at cyrius dot com
  2006-06-21 12:20 ` [Bug rtl-optimization/28121] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: tbm at cyrius dot com @ 2006-06-21 11:02 UTC (permalink / raw)
  To: gcc-bugs

I get the following ICE with gcc 4.2.  This is a regression from 4.0 and 4.1.

(sid)17:tbm@usurper: ~] /usr/lib/gcc-snapshot/bin/gcc -c -O2 mini.c
mini.c: In function 'GetCmd':
mini.c:23: error: wrong amount of branch edges after unconditional jump 2
mini.c:23: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
zsh: exit 1     /usr/lib/gcc-snapshot/bin/gcc -c -O2 mini.c
(sid)18:tbm@usurper: ~] /usr/lib/gcc-snapshot/bin/gcc -c -O1 mini.c
(sid)19:tbm@usurper: ~] gcc-4.1 -c -O2 mini.c
(sid)20:tbm@usurper: ~] gcc-4.0 -c -O2 mini.c
(sid)21:tbm@usurper: ~] cat mini.c
short
GetCmd ()
{
  int c, c1;
  for (c = 255; c == 255;)
    {
      c = GetMouseButton ();
      if (c >= 0)
        {
          c = ParsePos (c, -1, 0);
          c1 = ParsePos (c1, c, 1);
          if (c == c1 && (c >= 0 || c == -10))
            {
              return c;
            }
          if (c >= 0 && c1 == -12)
            {
              return ((((((10) + 1) + 1)) + 1) << 7) | c;
            }
          c = 255;
        }
    }
}


-- 
           Summary: [4.2 regression] verify_flow_info failed (wrong amount
                    of branch edges after unconditional jump 2)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
@ 2006-06-21 12:20 ` rguenth at gcc dot gnu dot org
  2006-06-21 14:19 ` tbm at cyrius dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-06-21 12:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-06-21 11:59 -------
Confirmed.

#0  internal_error (gmsgid=0x887a074 "verify_flow_info failed")
    at /space/rguenther/src/svn/trunk/gcc/diagnostic.c:586
#1  0x085fc3ab in verify_flow_info ()
    at /space/rguenther/src/svn/trunk/gcc/cfghooks.c:227
#2  0x0871f6af in try_optimize_cfg (mode=1)
    at /space/rguenther/src/svn/trunk/gcc/cfgcleanup.c:2147
#3  0x0871f912 in cleanup_cfg (mode=1)
    at /space/rguenther/src/svn/trunk/gcc/cfgcleanup.c:2238
#4  0x083dfd84 in rest_of_handle_jump_bypass ()
    at /space/rguenther/src/svn/trunk/gcc/gcse.c:6630


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-06-21 11:59:33
               date|                            |


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
  2006-06-21 12:20 ` [Bug rtl-optimization/28121] " rguenth at gcc dot gnu dot org
@ 2006-06-21 14:19 ` tbm at cyrius dot com
  2006-06-21 14:26 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: tbm at cyrius dot com @ 2006-06-21 14:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tbm at cyrius dot com  2006-06-21 13:37 -------
This appeared between 20060218 and 20060325.


-- 


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
  2006-06-21 12:20 ` [Bug rtl-optimization/28121] " rguenth at gcc dot gnu dot org
  2006-06-21 14:19 ` tbm at cyrius dot com
@ 2006-06-21 14:26 ` pinskia at gcc dot gnu dot org
  2006-06-21 14:37 ` rakdver at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-21 14:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-06-21 14:22 -------
This works for me with a cross to powerpc64-linux-gnu with "4.2.0 20060617". 
What target are you compiling this on?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.2.0


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
                   ` (2 preceding siblings ...)
  2006-06-21 14:26 ` pinskia at gcc dot gnu dot org
@ 2006-06-21 14:37 ` rakdver at gcc dot gnu dot org
  2006-06-21 14:50 ` rakdver at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-06-21 14:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rakdver at gcc dot gnu dot org  2006-06-21 14:26 -------
On i686-linux, it fails.


-- 


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
                   ` (3 preceding siblings ...)
  2006-06-21 14:37 ` rakdver at gcc dot gnu dot org
@ 2006-06-21 14:50 ` rakdver at gcc dot gnu dot org
  2006-06-21 23:17 ` rakdver at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-06-21 14:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rakdver at gcc dot gnu dot org  2006-06-21 14:37 -------
The problem is that the edge from bb 2 has EDGE_EXECUTABLE flag set, which
confuses verify_flow_info.


-- 

rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rakdver at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-06-21 11:59:33         |2006-06-21 14:37:01
               date|                            |


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
                   ` (4 preceding siblings ...)
  2006-06-21 14:50 ` rakdver at gcc dot gnu dot org
@ 2006-06-21 23:17 ` rakdver at gcc dot gnu dot org
  2006-06-22 18:05 ` rakdver at gcc dot gnu dot org
  2006-06-23  3:50 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-06-21 23:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rakdver at gcc dot gnu dot org  2006-06-21 23:15 -------
Patch: http://gcc.gnu.org/ml/gcc-patches/2006-06/msg01215.html


-- 

rakdver at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |06/msg01215.html
           Keywords|                            |patch


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
                   ` (5 preceding siblings ...)
  2006-06-21 23:17 ` rakdver at gcc dot gnu dot org
@ 2006-06-22 18:05 ` rakdver at gcc dot gnu dot org
  2006-06-23  3:50 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2006-06-22 18:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rakdver at gcc dot gnu dot org  2006-06-22 17:54 -------
Subject: Bug 28121

Author: rakdver
Date: Thu Jun 22 17:54:45 2006
New Revision: 114898

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114898
Log:
        PR rtl-optimization/28121
        * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
        the entry edge.

        * gcc.dg/pr28121.c: New test.


Added:
    trunk/gcc/testsuite/gcc.dg/pr28121.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfgexpand.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug rtl-optimization/28121] [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2)
  2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
                   ` (6 preceding siblings ...)
  2006-06-22 18:05 ` rakdver at gcc dot gnu dot org
@ 2006-06-23  3:50 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-23  3:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-06-23 03:26 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-06-23  3:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-21 11:02 [Bug rtl-optimization/28121] New: [4.2 regression] verify_flow_info failed (wrong amount of branch edges after unconditional jump 2) tbm at cyrius dot com
2006-06-21 12:20 ` [Bug rtl-optimization/28121] " rguenth at gcc dot gnu dot org
2006-06-21 14:19 ` tbm at cyrius dot com
2006-06-21 14:26 ` pinskia at gcc dot gnu dot org
2006-06-21 14:37 ` rakdver at gcc dot gnu dot org
2006-06-21 14:50 ` rakdver at gcc dot gnu dot org
2006-06-21 23:17 ` rakdver at gcc dot gnu dot org
2006-06-22 18:05 ` rakdver at gcc dot gnu dot org
2006-06-23  3:50 ` pinskia 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).