This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on aggregates and GIMPLE
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner), rth at redhat dot com
- Date: Wed, 9 Jun 2004 02:56:07 +0100
- Subject: Re: Question on aggregates and GIMPLE
- Organization: CodeSourcery
- References: <10406090138.AA25853@vlsi1.ultra.nyu.edu>
> 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