Fwd: Re: PATCH: libffi support for s390 architecture

Ulrich Weigand Ulrich.Weigand@de.ibm.com
Wed May 15 08:51:00 GMT 2002


Tom Tromey wrote:

>Gerhard> FAIL: Throw_2 execution from source compiled test
>Gerhard> FAIL: Throw_2 execution from bytecode->native test
>Gerhard> FAIL: Throw_2 -O execution from source compiled test
>Gerhard> FAIL: Throw_2 -O execution from bytecode->native test
>
>I guess this port is using -fcheck-references.
>So this is expected, at least until someone does a little more work on
>the port.

Could you elaborate?  I guess I'll have to implement the
MD_FALLBACK_FRAME_STATE_FOR macro in the s390 backend.

Apart from this, is there anything else?


>Gerhard> FAIL: invokethrow execution from source compiled test
>Gerhard> FAIL: invokethrow execution from bytecode->native test
>Gerhard> FAIL: invokethrow -O execution from source compiled test
>Gerhard> FAIL: invokethrow -O execution from bytecode->native test
>
>This (probably) means that the libffi assembly code doesn't have
>exception handling info included.  So we can't throw across it.  This
>will limit the utility of the interpreter.

The following patch should fix this (and fixes a bug: register 6 was
not saved/restored as required by the ABI).

Bootstrapped/regtested on s390-ibm-linux, no new regressions, the
invokethrow regressions are now fixed.

OK to apply?


ChangeLog:

      * src/s390/sysv.S: Save/restore %r6.  Add DWARF-2 unwind info.

(See attached file: diff-libffi)


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-libffi
Type: application/octet-stream
Size: 3265 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020515/95d3cc50/attachment.obj>


More information about the Java-patches mailing list