This is the mail archive of the gcc-patches@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: [PATCH] Fix some type errors


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.


r~


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