This is the mail archive of the
mailing list for the GCC project.
Re: <addr_expr <realpart_expr <x>>> ?
On Sun, Jan 11, 2004 at 07:40:31PM -0500, Diego Novillo wrote:
> Blech. What if we expanded COMPLEX_TYPE into vanilla COMPONENT_REFs?
> So that __real__ x, is emitted as COMPONENT_REF <x, real>.
Well, that's what we're doing with REALPART_EXPR at the moment.
> That would mean that we need to expand all the complex operations either
> at gimplification time, or at parse time. But we would at least be able
> to treat complex and structures similarly.
Expanding complex operations just before SRA would probably do
what we want. It would eliminate enough dead code that we
wouldn't waste time.
At the moment I'm thinking that this is the only viable option.