Re: [PATCH PR67921]Convert pointer expr to proper type before negating it

2016-02-01 Thread Richard Biener
On Fri, Jan 29, 2016 at 5:21 PM, Bin Cheng wrote: > Hi, > Function fold_binary_loc calls split_tree to split a tree into constant, > literal and variable parts. Function split_tree deals with minus_expr by > negating different parts into NEXGATE_EXPR. Since tree exprs fed to > split_tree are

[PATCH PR67921]Convert pointer expr to proper type before negating it

2016-01-29 Thread Bin Cheng
Hi, Function fold_binary_loc calls split_tree to split a tree into constant, literal and variable parts. Function split_tree deals with minus_expr by negating different parts into NEXGATE_EXPR. Since tree exprs fed to split_tree are with NOP conversions stripped, this could result in illegal e