This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32950] [4.5 regression] ICE with __complex__ double
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jun 2009 15:55:47 -0000
- Subject: [Bug middle-end/32950] [4.5 regression] ICE with __complex__ double
- References: <bug-32950-14926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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