------- Comment #16 from pinskia at gcc dot gnu dot org 2009-06-07 15:55 ------- Wait, (In reply to comment #15) > (In reply to comment #11) > > It is caused by revision 147980: > > > > http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00959.html > > > > Revision 147978 also does not work if you compile the testcase with > the -fno-tree-sra switch. > > New SRA uncovers this problem because it sees the structure containing > only a single field always accessed as a structure and never as a > scalar and so does not scalarize it. Something goes wrong later on, > probably when expanding to RTL. Unfortunately, I cannot help fixing > that.
I think that should always scalarize as it is a single field as it is always better to scalarize single field structs (except maybe bitfield ones). -- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32950