This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]