diff options
author | Russ Cox <rsc@golang.org> | 2009-11-23 14:23:14 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-23 14:23:14 -0800 |
commit | 8252c828742e57cfe78e3ab7a8e86c181f12a5e9 (patch) | |
tree | be171a89d43f5861c2eaa6d474a38b192a384040 /src/cmd/cc/lexbody | |
parent | 5f294bf929bf019797638f164b23fe98a62b53d9 (diff) | |
download | golang-8252c828742e57cfe78e3ab7a8e86c181f12a5e9.tar.gz |
two more if(h<0) that gcc 4.3 -O2 miscompiles
R=r
http://codereview.appspot.com/160044
Diffstat (limited to 'src/cmd/cc/lexbody')
-rw-r--r-- | src/cmd/cc/lexbody | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/cc/lexbody b/src/cmd/cc/lexbody index f5a250fcf..ba5eda824 100644 --- a/src/cmd/cc/lexbody +++ b/src/cmd/cc/lexbody @@ -226,8 +226,7 @@ lookup(void) for(p=symb; c = *p; p++) h = h+h+h + c; l = (p - symb) + 1; - if(h < 0) - h = ~h; + h &= 0xffffff; h %= NHASH; c = symb[0]; for(s = hash[h]; s != S; s = s->link) { |