<addr_expr <realpart_expr <x>>> ?

Richard Henderson rth@redhat.com
Mon Jan 12 01:05:00 GMT 2004


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.



r~



More information about the Gcc-patches mailing list