diff options
author | Russ Cox <rsc@golang.org> | 2009-11-12 00:22:45 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-12 00:22:45 -0800 |
commit | ea1f8d6e20be037f677d85ba2efece46a8558773 (patch) | |
tree | 67f2991d1d461462f1722614d54da7bcd767f284 /src/cmd/cc | |
parent | fb02e4cba0430d1a4ee7caf0108da33db37561ac (diff) | |
download | golang-ea1f8d6e20be037f677d85ba2efece46a8558773.tar.gz |
cc, ld: fix more gcc 4.3 -O2 compile bugs
same as http://codereview.appspot.com/152088
in more files.
Fixes issue 83.
R=r, r1
http://codereview.appspot.com/152091
Diffstat (limited to 'src/cmd/cc')
-rw-r--r-- | src/cmd/cc/lex.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/cc/lex.c b/src/cmd/cc/lex.c index ff80bfb32..9fbf3a3ac 100644 --- a/src/cmd/cc/lex.c +++ b/src/cmd/cc/lex.c @@ -411,8 +411,7 @@ lookup(void) h += *p++; } n = (p - symb) + 1; - if((int32)h < 0) - h = ~h; + h &= 0xffffff; h %= NHASH; c = symb[0]; for(s = hash[h]; s != S; s = s->link) { |