Question on aggregates and GIMPLE

Richard Henderson rth@redhat.com
Wed Jun 9 16:08:00 GMT 2004


On Tue, Jun 08, 2004 at 10:50:21PM -0400, Richard Kenner wrote:
> Well, the history isn't too relevant, but my view is that it would have been
> nice if we'd had a precisely-written specification of what the existing tree
> language supported.  Then it would have either implemented those things or
> very explicitly chosen (by negotation with the rest of the community) not to.

Yes, that would have been nice.

> If I write S (3..5) = "xyz" I'd really like that to survive in the tree
> as an <EQ_EXPR <ARRAY_RANGE_EXPR <S 3>> <STRING_CST "xyz">> ...

Not without changing things completely.  In GIMPLE, aggregates appear
on the lhs or rhs of a MODIFY_EXPR only.  Everything else is scalar.

We *may* change things around in the future to cater to the vector
optimizer, but those changes will have to be considered carefully.

Please just emit the __builtin_memcmp yourself in the Ada front end.


r~



More information about the Gcc mailing list