Re: [PATCH] Fix PR54211

2012-08-10 Thread Richard Guenther
On Thu, 9 Aug 2012, William J. Schmidt wrote: > Fix a thinko in strength reduction. I was checking the type of the > wrong operand to determine whether address arithmetic should be used in > replacing expressions. This produced a spurious POINTER_PLUS_EXPR when > an address was converted to an u

[PATCH] Fix PR54211

2012-08-09 Thread William J. Schmidt
Fix a thinko in strength reduction. I was checking the type of the wrong operand to determine whether address arithmetic should be used in replacing expressions. This produced a spurious POINTER_PLUS_EXPR when an address was converted to an unsigned long and back again. Bootstrapped and tested o