Question on aggregates and GIMPLE

Paul Brook paul@codesourcery.com
Wed Jun 9 01:56:00 GMT 2004


>     What the hell does a comparison of an aggregate mean?
>
> What it always has!  do_jump has supported it for over a decade!
>
>     I suppose we could gimplify it to memcmp, but since I suspect no one
>     else thinks such things are possible, this could as well be a
>     front-end issue.
>
> But it's valid in the GCC tree and always has been!

FWIW The fortran definition of comparison of aggregates is not the same as 
memcmp. It defines aggregates as equal if all the members compare as equal. 
This can be different from binary comparison eg, for floating point values.

Paul



More information about the Gcc mailing list