Re: [committed] PR 61095: tsan fallout from wide-int merge

2014-05-08 Thread Richard Biener
On Thu, May 8, 2014 at 9:48 AM, Richard Sandiford wrote: > Richard Sandiford writes: >> This PR was due to code in which -(int) foo was suposed to be sign-extended, >> but was being ORed with an unsigned int and so ended up being zero-extended. >> Fixed by using the proper-width type. > > As Kost

Re: [committed] PR 61095: tsan fallout from wide-int merge

2014-05-08 Thread Richard Sandiford
Richard Sandiford writes: > This PR was due to code in which -(int) foo was suposed to be sign-extended, > but was being ORed with an unsigned int and so ended up being zero-extended. > Fixed by using the proper-width type. As Kostya rightly said in the PR, this should have had a testcase too. T

[committed] PR 61095: tsan fallout from wide-int merge

2014-05-07 Thread Richard Sandiford
This PR was due to code in which -(int) foo was suposed to be sign-extended, but was being ORed with an unsigned int and so ended up being zero-extended. Fixed by using the proper-width type. Tested on x86_64-linux-gnu and applied as obvious. Sorry for the breakage. Thanks, Richard gcc/