javaop.h (WORD_TO_INT): Mask lower 32 bits of a jword before sign extending.
authorAndrew Haley <aph@cygnus.com>
Tue, 29 Aug 2000 16:12:59 +0000 (16:12 +0000)
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>
Tue, 29 Aug 2000 16:12:59 +0000 (09:12 -0700)
commit9b1ee05b0e2a948a2612dcc6b9835a91ee855f99
tree9e8a6be704176c42bc696fce9ce76e1e2f26270b
parentdc478a5dd45f10a1c9d42230a3eb6c6aa1e50a1d
javaop.h (WORD_TO_INT): Mask lower 32 bits of a jword before sign extending.

2000-08-22  Andrew Haley  <aph@cygnus.com>

* javaop.h (WORD_TO_INT): Mask lower 32 bits of a jword before
sign extending. Fixes gcj/321.
* jcf-parse.c (get_constant): Mask lower 32 bits of a jint before
combining to make a jlong. Fixes gcj/321.

(This fixes gcj/321:
 http://sources.redhat.com/ml/java-prs/2000-q3/msg00146.html
 http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00897.html)

From-SVN: r36037
gcc/java/ChangeLog
gcc/java/javaop.h
gcc/java/jcf-parse.c