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 issues in the middle-end


> This fixes mismatched types generated in the middle-end that were
> exposed by bootstrapping & testing ada.  With this patch all default
> languages and ada bootstrap with the type-checker.

Great achievement!  Thanks for testing Ada.

> *************** fold_binary (enum tree_code code, tree t
> *** 10271,10277 ****
>         if (integer_zerop (arg1))
>   	return non_lvalue (fold_convert (type, arg0));
>         if (integer_all_onesp (arg1))
> ! 	return fold_build1 (BIT_NOT_EXPR, type, arg0);
>         if (operand_equal_p (arg0, arg1, 0))
>   	return omit_one_operand (type, integer_zero_node, arg0);
>
> --- 10271,10277 ----
>         if (integer_zerop (arg1))
>   	return non_lvalue (fold_convert (type, arg0));
>         if (integer_all_onesp (arg1))
> ! 	return fold_build1 (BIT_NOT_EXPR, type, op0);
>         if (operand_equal_p (arg0, arg1, 0))
>   	return omit_one_operand (type, integer_zero_node, arg0);

This hunk doesn't look very intuitive.  Maybe a small comment?

-- 
Eric Botcazou


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