public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3
@ 2005-07-14 13:04 micis at gmx dot de
2005-07-14 13:08 ` [Bug tree-optimization/22484] " micis at gmx dot de
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: micis at gmx dot de @ 2005-07-14 13:04 UTC (permalink / raw)
To: gcc-bugs
When I compile ace542 with the actual snapshot of gcc41 I get an ICE when I
use -O3.
The last snapshot which works is gcc-4.1-20050528, the first that fails is gcc-
4.1-20050604.
Michael Cieslinski
g++41f -O3 -c -o testC.o testC.ii
ACE_wrappers/TAO/tao/Any_Array_Impl_T.cpp: In static member function 'static
CORBA::Boolean TAO::Any_Array_Impl_T<T_slice, T_forany>::extract(const
CORBA::Any&, void (*)(void*), CORBA::TypeCode*, T_slice*&) [with T_slice =
TAO_String_Manager, T_forany = TAO_Array_Forany_T<TAO_String_Manager [5],
TAO_String_Manager, Param_Test::Var_Array_tag>]':
ACE_wrappers/TAO/tao/Any_Array_Impl_T.cpp:61: error: invalid conditional operand
(boolD.1799) _tao_marshal_flagD.196185_327;
ACE_wrappers/TAO/tao/Any_Array_Impl_T.cpp:61: internal compiler error:
verify_stmts failed
please submit a full bug report, with preprocessed source if appropriate.
g++41f -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1-20050709/configure --prefix=/usr/local/gcc41f --
program-suffix=41f --with-arch=opteron --enable-languages=c,c++ --enable-
checking
Thread model: posix
gcc version 4.1.0 20050709 (experimental)
--
Summary: ICE: verify_stmts failed with -O3
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: micis at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
@ 2005-07-14 13:08 ` micis at gmx dot de
2005-07-14 13:35 ` [Bug tree-optimization/22484] [4.1 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: micis at gmx dot de @ 2005-07-14 13:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From micis at gmx dot de 2005-07-14 13:04 -------
Created an attachment (id=9270)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9270&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
2005-07-14 13:08 ` [Bug tree-optimization/22484] " micis at gmx dot de
@ 2005-07-14 13:35 ` pinskia at gcc dot gnu dot org
2005-07-14 13:54 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 13:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-14 13:30 -------
I add more checking and this is what I get someone not playing nice.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |ice-on-valid-code
Summary|ICE: verify_stmts failed |[4.1 Regression] ICE:
|with -O3 |verify_stmts failed with -O3
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
2005-07-14 13:08 ` [Bug tree-optimization/22484] " micis at gmx dot de
2005-07-14 13:35 ` [Bug tree-optimization/22484] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-14 13:54 ` pinskia at gcc dot gnu dot org
2005-07-14 16:05 ` reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 13:54 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|x86_64-unknown-linux-gnu |any 64bit target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
` (2 preceding siblings ...)
2005-07-14 13:54 ` pinskia at gcc dot gnu dot org
@ 2005-07-14 16:05 ` reichelt at gcc dot gnu dot org
2005-07-14 16:37 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-14 16:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-14 16:05 -------
Confirmed. Reduced testcase (compile with -O3):
======================================
struct A { ~A(); };
typedef bool B;
bool foo();
bool bar(A&)
{
B b = true;
for (int i = 0; i < 2 && b; ++i)
b = foo();
return b;
}
void baz()
{
A a;
if (bar(a)) foo();
}
======================================
The strange thing is that the typedef is really necessary.
The problem only affects mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC target triplet|any 64bit target |
Keywords| |monitored
Last reconfirmed|0000-00-00 00:00:00 |2005-07-14 16:05:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
` (3 preceding siblings ...)
2005-07-14 16:05 ` reichelt at gcc dot gnu dot org
@ 2005-07-14 16:37 ` reichelt at gcc dot gnu dot org
2005-07-14 16:45 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-14 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-07-14 16:25 -------
*** Bug 22490 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
` (4 preceding siblings ...)
2005-07-14 16:37 ` reichelt at gcc dot gnu dot org
@ 2005-07-14 16:45 ` pinskia at gcc dot gnu dot org
2005-07-16 21:33 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 16:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-14 16:39 -------
Found the problem, we should be removing the cast as it is useless.
Fixing.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
` (5 preceding siblings ...)
2005-07-14 16:45 ` pinskia at gcc dot gnu dot org
@ 2005-07-16 21:33 ` pinskia at gcc dot gnu dot org
2005-07-25 20:28 ` pinskia at gcc dot gnu dot org
2005-07-25 20:34 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-16 21:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-16 21:31 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-07/msg01098.html>.
Note this was introduced by the following two patches:
2005-05-31 Andrew Pinski <pinskia@physics.uc.edu>
* tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
expression.
2004-05-03 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/15618
* fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
the same as INTEGER_TYPE.
(fold_binary): Fold "bool_var != 0" to bool_var.
Fold "bool_var == 1" to bool_var.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |07/msg01098.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
` (6 preceding siblings ...)
2005-07-16 21:33 ` pinskia at gcc dot gnu dot org
@ 2005-07-25 20:28 ` pinskia at gcc dot gnu dot org
2005-07-25 20:34 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-25 20:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-25 20:27 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/22484] [4.1 Regression] ICE: verify_stmts failed with -O3
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
` (7 preceding siblings ...)
2005-07-25 20:28 ` pinskia at gcc dot gnu dot org
@ 2005-07-25 20:34 ` cvs-commit at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-25 20:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-25 20:28 -------
Subject: Bug 22484
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2005-07-25 20:28:02
Modified files:
gcc : ChangeLog tree-ssa-ccp.c tree-ssa-propagate.c
gcc/testsuite : ChangeLog
Log message:
2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22484
* tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
after fold.
* tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22484
* testsuite/g++.dg/opt/loop2.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9541&r2=2.9542
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-ccp.c.diff?cvsroot=gcc&r1=2.83&r2=2.84
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-propagate.c.diff?cvsroot=gcc&r1=2.26&r2=2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5821&r2=1.5822
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22484
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-07-25 20:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 13:04 [Bug tree-optimization/22484] New: ICE: verify_stmts failed with -O3 micis at gmx dot de
2005-07-14 13:08 ` [Bug tree-optimization/22484] " micis at gmx dot de
2005-07-14 13:35 ` [Bug tree-optimization/22484] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-14 13:54 ` pinskia at gcc dot gnu dot org
2005-07-14 16:05 ` reichelt at gcc dot gnu dot org
2005-07-14 16:37 ` reichelt at gcc dot gnu dot org
2005-07-14 16:45 ` pinskia at gcc dot gnu dot org
2005-07-16 21:33 ` pinskia at gcc dot gnu dot org
2005-07-25 20:28 ` pinskia at gcc dot gnu dot org
2005-07-25 20:34 ` cvs-commit 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).