PR java/22084 [4.1 Regression] Divide_1 test case hangs

Ranjit Mathew rmathew@gmail.com
Fri Sep 9 12:19:00 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Haley wrote:
> Ranjit Mathew writes:
>  >
>  > Andrew Haley wrote:
>  > > gcc at -O0 is now generating indexed loads for local variables via
>  > > register SP, rather than via BP as before.  This is confusing the
>  > > disassembler in Java's divide overflow handler, which had never seen
>  > > such loads before.  SP-indexed loads are 1 byte longer than BP-indexed
>  > > loads, so we need to increment PC.
>  > 
>  > Thanks a lot for looking into this and fixing it. This patch
>  > seems to fix PR java/22166 and I get a clean testsuite run
>  > once again. I don't know how you manage to figure out these
>  > things, but awesome.
> 
> Really, this one wasn't so very difficult.

Well, I spent a couple of really frustrating hours trying to
track this down and it doesn't look like that to me. :-/


> The most time-consuming part of the whole exercise was trying to find
> the page in the damned Pentium manual that describes the instruction
> encodings.  :-)

I thought I would never get to see anything about ModR/M
bytes again (I had written a simple disassembler for x86
around 10 years ago), not while working on GCJ at least.

Ranjit.

- --
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://ranjitmathew.hostingzero.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDIX3wYb1hx2wRS48RAgCeAJ92s9YTUEb2CDEkKaa137k72MElFQCbBV1t
V8DhgGlWTMJmrmnqUk26jrM=
=ZYPo
-----END PGP SIGNATURE-----



More information about the Java-patches mailing list