This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix some type errors
Richard Henderson wrote:
> On Mon, May 30, 2005 at 02:50:47PM +0200, Richard Guenther wrote:
>>! tree iref = build_fold_indirect_ref (TREE_VALUE (arglist));
>>! return fold_build2 (code, type,
>>! fold_convert (char_type_node, iref),
>>! build_int_cst (char_type_node, 0));
> Given that this has gone through a front end that has applied
> type conversions appropriate to __builtin_strlen, I don't see
> why you need to fold_convert to char_type_node here.
Hm, I got at this during checking types of INDIRECT_REF trees,
so you might be right. You probably are. I'll revise and
re-test the patch.