[PATCH] Fix some type errors

Paul Schlie schlie@comcast.net
Wed Jun 1 01:09:00 GMT 2005


> Richard Henderson <rth at redhat dot com>
>> 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.

Although not sure if it helps, but observe that expr.c seem to drop the
fact that STRING_CST references are READONLY memory references when
utilizing builtin_strxxx, (move etc.) which should be retained and visible
to the back-end?






More information about the Gcc-patches mailing list