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
This commit is contained in:
parent
8748c00f94
commit
25a2fe8569
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
19
gcc/testsuite/g++.dg/opt/ptrmem5.C
Normal file
19
gcc/testsuite/g++.dg/opt/ptrmem5.C
Normal file
@ -0,0 +1,19 @@
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user