This is the mail archive of the gcc@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: General question about types of tree expressions


On Wed, 2005-02-09 at 09:35 -0700, Jeffrey A Law wrote:
> On Wed, 2005-02-09 at 15:38 +0100, Richard Guenther wrote:
> 
> > Ok, so PLUS_EXPR (int, short, unsigned int) is invalid - though the
> > middle-end seems to be "happy" which such node and checking does not
> > catch it.  For example
> Traditionally the middle-end has been very "accepting" of
> different types in tree nodes.  While being "accepting" was
> OK in the past, I don't think it's what we want to be doing
> in the future.
> 

The document i've been working on defining the semantics of gimple
operations specifically states that all binary and unary operators must
have operands of the same type.

I've got a verifier that verifies this, and as one would expect, it
catches quite a few "issues" right now.

--Dan


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