public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/20920] New: ICE
@ 2005-04-09 19:32 kazu at cs dot umass dot edu
  2005-04-09 19:34 ` [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-09 19:32 UTC (permalink / raw)
  To: gcc-bugs

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

Consider:

void f(int) __attribute__((__noreturn__));
int d(const char *);
char * j ();

char *
foo (int x)
{
  char *path = __null;
  try
    {
      path = j ();
      if (path != __null)
	if (d (path) != 0)
	  f (127);
      f (127);
    }
  catch (...) { }

  return path;
}

With -O2, I get:

 Conflict path_1 and path_6 across an abnormal edge from BB5->BB6
test.cc: In function ‘char* foo(int)’:
test.cc:6: internal compiler error: SSA corruption
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The testcase is simplified a little bit from the one posted at:

http://gcc.gnu.org/ml/gcc-regression/2005-04/msg00031.html

-- 
           Summary: ICE
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: dnovillo at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org


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


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

* [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP
  2005-04-09 19:32 [Bug tree-optimization/20920] New: ICE kazu at cs dot umass dot edu
@ 2005-04-09 19:34 ` pinskia at gcc dot gnu dot org
  2005-04-09 19:34 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-09 19:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-09 19:34 -------
Adding build keyword as this is causing the powerpc-darwin build to fail.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |build


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


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

* [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP
  2005-04-09 19:32 [Bug tree-optimization/20920] New: ICE kazu at cs dot umass dot edu
  2005-04-09 19:34 ` [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP pinskia at gcc dot gnu dot org
@ 2005-04-09 19:34 ` pinskia at gcc dot gnu dot org
  2005-04-10  3:34 ` kazu at cs dot umass dot edu
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-09 19:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-09 19:33 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-09 19:33:58
               date|                            |
            Summary|ICE                         |[4.1 Regression] ICE with eh
                   |                            |and VRP
   Target Milestone|---                         |4.1.0
            Version|unknown                     |4.1.0


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


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

* [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP
  2005-04-09 19:32 [Bug tree-optimization/20920] New: ICE kazu at cs dot umass dot edu
  2005-04-09 19:34 ` [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP pinskia at gcc dot gnu dot org
  2005-04-09 19:34 ` pinskia at gcc dot gnu dot org
@ 2005-04-10  3:34 ` kazu at cs dot umass dot edu
  2005-04-11 13:01 ` dnovillo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-10  3:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2005-04-10 03:34 -------
Patch posted:

http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01050.html


-- 


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


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

* [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP
  2005-04-09 19:32 [Bug tree-optimization/20920] New: ICE kazu at cs dot umass dot edu
                   ` (2 preceding siblings ...)
  2005-04-10  3:34 ` kazu at cs dot umass dot edu
@ 2005-04-11 13:01 ` dnovillo at gcc dot gnu dot org
  2005-04-11 15:06 ` cvs-commit at gcc dot gnu dot org
  2005-04-11 15:09 ` dnovillo at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2005-04-11 13:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dnovillo at gcc dot gnu dot org  2005-04-11 13:01 -------
*** Bug 20944 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |micis at gmx dot de


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


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

* [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP
  2005-04-09 19:32 [Bug tree-optimization/20920] New: ICE kazu at cs dot umass dot edu
                   ` (3 preceding siblings ...)
  2005-04-11 13:01 ` dnovillo at gcc dot gnu dot org
@ 2005-04-11 15:06 ` cvs-commit at gcc dot gnu dot org
  2005-04-11 15:09 ` dnovillo at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-11 15:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-11 15:06 -------
Subject: Bug 20920

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dnovillo@gcc.gnu.org	2005-04-11 15:05:50

Modified files:
	gcc            : ChangeLog tree-pretty-print.c tree-vrp.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/tree-ssa: pr20920.C 

Log message:
	PR tree-optimization/20920
	* tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
	SSA_NAME flows through an abnormal edge.
	* tree-vrp.c (infer_value_range): Ignore SSA names that flow
	through abnormal edges.
	(maybe_add_assert_expr): Likewise.
	
	PR tree-optimization/20920
	* g++.dg/tree-ssa/pr20920.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8227&r2=2.8228
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-pretty-print.c.diff?cvsroot=gcc&r1=2.56&r2=2.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vrp.c.diff?cvsroot=gcc&r1=2.2&r2=2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5324&r2=1.5325
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/tree-ssa/pr20920.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP
  2005-04-09 19:32 [Bug tree-optimization/20920] New: ICE kazu at cs dot umass dot edu
                   ` (4 preceding siblings ...)
  2005-04-11 15:06 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-11 15:09 ` dnovillo at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2005-04-11 15:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dnovillo at gcc dot gnu dot org  2005-04-11 15:09 -------
Fixed.  http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01050.html

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


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


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

end of thread, other threads:[~2005-04-11 15:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-09 19:32 [Bug tree-optimization/20920] New: ICE kazu at cs dot umass dot edu
2005-04-09 19:34 ` [Bug tree-optimization/20920] [4.1 Regression] ICE with eh and VRP pinskia at gcc dot gnu dot org
2005-04-09 19:34 ` pinskia at gcc dot gnu dot org
2005-04-10  3:34 ` kazu at cs dot umass dot edu
2005-04-11 13:01 ` dnovillo at gcc dot gnu dot org
2005-04-11 15:06 ` cvs-commit at gcc dot gnu dot org
2005-04-11 15:09 ` dnovillo 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).