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: [tree-ssa] fold-const.c merge from mainline (take 2)


On Tue, Oct 14, 2003 at 05:52:41PM -0600, Roger Sayle wrote:
> 	* fold-const.c: Merge from mainline.
> 	* tree.c (associate_tree_code, commutative_tree_code): Use a
> 	switch statement instead of a sequence of comparisons.

Nearly ok.

>     switch (TREE_CODE (t))
>       {
>       case INTEGER_CST:
> !       {
> ! 	unsigned HOST_WIDE_INT low;
> ! 	HOST_WIDE_INT high;
> ! 	int overflow = neg_double (TREE_INT_CST_LOW (t),
> ! 				   TREE_INT_CST_HIGH (t),
> ! 				   &low, &high);
...
>       case REAL_CST:

Should be using fold_negate_const.

Fix that and it can go in.


r~


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