Commit 25a2fe85 by Andrew Pinski Committed by Andrew Pinski

re PR tree-optimization/18904 (4.0-20041205 regression ICE with -O3)

2004-12-09  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/18904
        * g++.dg/opt/ptrmem5.C: New test.

2004-12-09  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/18904
        * tree-chrec.c (chrec_convert): Use fold_convert
        instead of convert.

From-SVN: r91954
parent 8748c00f
2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/18904
* tree-chrec.c (chrec_convert): Use fold_convert
instead of convert.
2004-12-09 Matt Rice <ratmice@yahoo.com>
PR preprocessor/18102
......
2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/18904
* g++.dg/opt/ptrmem5.C: New test.
2004-12-09 Alexandre Oliva <aoliva@redhat.com>
* g++.dg/parse/typename5.C: Adjust for new error.
......
// PR tree-opt/18904
// { dg-do compile }
// { dg-options "-O3" }
struct Data;
struct Wrapper {
Data* D;
};
struct Data {
int X;
void init(Wrapper&);
};
void Data::init( Wrapper &w ) {
int Data::* res = &Data::X;
w.D = this;
for( int i = 0; i < 4; i++ )
(w.D->*res) = 0;
}
......@@ -983,7 +983,7 @@ chrec_convert (tree type,
default:
{
tree res = convert (type, chrec);
tree res = fold_convert (type, chrec);
/* Don't propagate overflows. */
TREE_OVERFLOW (res) = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment