public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/42234] New: internal compiler error: verify_ssa failed
@ 2009-12-01 4:05 chenyang at cs dot utah dot edu
2009-12-01 4:35 ` [Bug debug/42234] [4.5 Regression] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: chenyang at cs dot utah dot edu @ 2009-12-01 4:05 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3138 bytes --]
Seems that "-g" triggers this problem. See the detail below:
yang@yang-working:~$ svngcc -Os -g -o small small.c
small.c: In function main:
small.c:34:1: error: definition in block 5 does not dominate use in block 6
for SSA_NAME: l_103_1 in statement:
# DEBUG l_103 => l_103_1
small.c:34:1: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
yang@yang-working:~$ cat small.c
#include <stdint.h>
struct S0 {
int f0;
};
int g_15 = 1;
int * g_19 = (&g_15);
int * g_46 = (&g_15);
static int
foo(int si1, int si2)
{
return (si1 > si2) ? si1 : si2;
}
int main(void)
{
struct S0 l_93 = {1};
int l_103 = 1;
if(foo(0, (g_46 != g_19)))
{
l_103 = g_15 && l_93.f0;
}
else
{
for (l_103 = 0; l_103 <= 3; l_103--)
{
g_15 = 1;
}
}
l_103++;
return 0;
}
yang@yang-working:~$ svngcc -v
Using built-in specs.
COLLECT_GCC=svngcc
COLLECT_LTO_WRAPPER=/home/yang/compilers/libexec/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-lto --prefix=/home/yang/compilers
--program-prefix=svn --enable-languages=c,c++
--with-libelf=/home/yang/compilers : (reconfigured) ../configure --enable-lto
--prefix=/home/yang/compilers --program-prefix=svn
--with-libelf=/home/yang/compilers --enable-languages=c,lto,c++ --no-create
--no-recursion : (reconfigured) ../configure --enable-lto
--prefix=/home/yang/compilers --program-prefix=svn
--with-libelf=/home/yang/compilers --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../configure --enable-lto
--prefix=/home/yang/compilers --program-prefix=svn
--with-libelf=/home/yang/compilers --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../configure --enable-lto
--prefix=/home/yang/compilers --program-prefix=svn
--with-libelf=/home/yang/compilers --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../configure --enable-lto
--prefix=/home/yang/compilers --program-prefix=svn
--with-libelf=/home/yang/compilers --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../configure --enable-lto
--prefix=/home/yang/compilers --program-prefix=svn
--with-libelf=/home/yang/compilers --enable-languages=c,c++,lto --no-create
--no-recursion : (reconfigured) ../configure --enable-lto
--prefix=/home/yang/compilers --program-prefix=svn
--with-libelf=/home/yang/compilers --enable-languages=c,c++,lto --no-create
--no-recursion
Thread model: posix
gcc version 4.5.0 20091130 (experimental) (GCC)
--
Summary: internal compiler error: verify_ssa failed
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chenyang at cs dot utah dot edu
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
@ 2009-12-01 4:35 ` pinskia at gcc dot gnu dot org
2009-12-01 8:19 ` jakub at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-12-01 4:35 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: |[4.5 Regression] internal
|verify_ssa failed |compiler error: verify_ssa
| |failed
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
2009-12-01 4:35 ` [Bug debug/42234] [4.5 Regression] " pinskia at gcc dot gnu dot org
@ 2009-12-01 8:19 ` jakub at gcc dot gnu dot org
2009-12-01 19:42 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-01 8:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2009-12-01 08:19 -------
Simplified testcase without the undefined signed underflow:
void
foo (int x)
{
struct S { int s; } d = { 1 };
unsigned int e = 1;
if (x)
e = x && d.s;
else
for (e = 0; e <= 3; e--)
;
e++;
}
The problem starts in *.cddce1, before that we have:
# e_2 = PHI <e_9(6), e_1(8)>
# DEBUG e => e_2
# DEBUG e => e_2 + 1
but after that only:
<bb 6>:
# DEBUG e => e_1
# DEBUG e => e_1 + 1
where e_1 is defined only in one of the predecessors of bb 6.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-01 08:19:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
2009-12-01 4:35 ` [Bug debug/42234] [4.5 Regression] " pinskia at gcc dot gnu dot org
2009-12-01 8:19 ` jakub at gcc dot gnu dot org
@ 2009-12-01 19:42 ` jakub at gcc dot gnu dot org
2009-12-01 19:45 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-01 19:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2009-12-01 19:42 -------
Subject: Bug 42234
Author: jakub
Date: Tue Dec 1 19:41:52 2009
New Revision: 154878
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154878
Log:
PR c++/42234
* tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
contains no statements.
* g++.dg/gomp/pr42234.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/gomp/pr42234.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfgcleanup.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
` (2 preceding siblings ...)
2009-12-01 19:42 ` jakub at gcc dot gnu dot org
@ 2009-12-01 19:45 ` jakub at gcc dot gnu dot org
2009-12-02 12:17 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-12-01 19:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2009-12-01 19:44 -------
Subject: Bug 42234
Author: jakub
Date: Tue Dec 1 19:44:34 2009
New Revision: 154879
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154879
Log:
PR c++/42234
* tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
contains no statements.
* g++.dg/gomp/pr42234.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/gomp/pr42234.C
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/tree-cfgcleanup.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
` (3 preceding siblings ...)
2009-12-01 19:45 ` jakub at gcc dot gnu dot org
@ 2009-12-02 12:17 ` rguenth at gcc dot gnu dot org
2009-12-02 22:45 ` rth at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-02 12:17 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
` (4 preceding siblings ...)
2009-12-02 12:17 ` rguenth at gcc dot gnu dot org
@ 2009-12-02 22:45 ` rth at gcc dot gnu dot org
2009-12-07 0:00 ` rth at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2009-12-02 22:45 UTC (permalink / raw)
To: gcc-bugs
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-12-01 08:19:33 |2009-12-02 22:44:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
` (5 preceding siblings ...)
2009-12-02 22:45 ` rth at gcc dot gnu dot org
@ 2009-12-07 0:00 ` rth at gcc dot gnu dot org
2009-12-07 0:54 ` rth at gcc dot gnu dot org
2009-12-12 1:46 ` hjl at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2009-12-07 0:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rth at gcc dot gnu dot org 2009-12-07 00:00 -------
Subject: Bug 42234
Author: rth
Date: Sun Dec 6 23:59:52 2009
New Revision: 155025
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155025
Log:
PR debug/42234
* tree-ssa-dom.c (degenerate_phi_result): Check for NULL phi
argument earlier.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr42234.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-ssa-dom.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
` (6 preceding siblings ...)
2009-12-07 0:00 ` rth at gcc dot gnu dot org
@ 2009-12-07 0:54 ` rth at gcc dot gnu dot org
2009-12-12 1:46 ` hjl at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2009-12-07 0:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rth at gcc dot gnu dot org 2009-12-07 00:53 -------
Fixed.
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug debug/42234] [4.5 Regression] internal compiler error: verify_ssa failed
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
` (7 preceding siblings ...)
2009-12-07 0:54 ` rth at gcc dot gnu dot org
@ 2009-12-12 1:46 ` hjl at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-12-12 1:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from hjl at gcc dot gnu dot org 2009-12-12 01:45 -------
Subject: Bug 42234
Author: hjl
Date: Sat Dec 12 01:45:12 2009
New Revision: 155191
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155191
Log:
Backport testcases from trunk.
2009-12-11 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-12-07 Richard Henderson <rth@redhat.com>
PR rtl-opt/42269
* gcc.c-torture/execute/pr42269-2.c: New.
2009-12-07 Richard Henderson <rth@redhat.com>
PR debug/42299
PR debug/42166
* gcc.c-torture/compile/pr42299.c: New.
* gfortran.dg/pr42166.f90: Likewise.
2009-12-06 Richard Henderson <rth@redhat.com>
PR debug/42234
* gcc.c-torture/compile/pr42234.c: New.
2009-12-02 Richard Henderson <rth@redhat.com>
PR tree-opt/42215
* gcc.dg/pr42215.c: New.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42234.c
- copied unchanged from r155190,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42234.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42299.c
- copied unchanged from r155190,
trunk/gcc/testsuite/gcc.c-torture/compile/pr42299.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr42269-2.c
- copied unchanged from r155190,
trunk/gcc/testsuite/gcc.c-torture/execute/pr42269-2.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr42215.c
- copied unchanged from r155190, trunk/gcc/testsuite/gcc.dg/pr42215.c
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr42166.f90
- copied unchanged from r155190,
trunk/gcc/testsuite/gfortran.dg/pr42166.f90
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42234
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-12-12 1:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-01 4:05 [Bug c/42234] New: internal compiler error: verify_ssa failed chenyang at cs dot utah dot edu
2009-12-01 4:35 ` [Bug debug/42234] [4.5 Regression] " pinskia at gcc dot gnu dot org
2009-12-01 8:19 ` jakub at gcc dot gnu dot org
2009-12-01 19:42 ` jakub at gcc dot gnu dot org
2009-12-01 19:45 ` jakub at gcc dot gnu dot org
2009-12-02 12:17 ` rguenth at gcc dot gnu dot org
2009-12-02 22:45 ` rth at gcc dot gnu dot org
2009-12-07 0:00 ` rth at gcc dot gnu dot org
2009-12-07 0:54 ` rth at gcc dot gnu dot org
2009-12-12 1:46 ` hjl 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).