This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Making more builtins fold-able, and handling side-effects in args
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: Making more builtins fold-able, and handling side-effects in args
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 5 Feb 2001 15:33:55 -0800
- Cc: ghazi at caip dot rutgers dot edu, gcc at gcc dot gnu dot org
- References: <10102022222.AA13452@vlsi1.ultra.nyu.edu>
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~