Making more builtins fold-able, and handling side-effects in args

Richard Henderson rth@redhat.com
Mon Feb 5 15:33:00 GMT 2001


On Fri, Feb 02, 2001 at 05:21:54PM -0500, Richard Kenner wrote:
>     What if the types of the two operands don't match, (e.g. in this case
>     char* vs size_t), does it matter?  Do I have to convert() s1?
> 
> You should.  It's always best to have the tree as type-correct as possible.

Certainly types matter for PLUS_EXPR, but COMPOUND_EXPR?
I don't think converting makes any sense there at all.


r~


More information about the Gcc mailing list