Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVS OCaml #2385

Closed
vicuna opened this issue Mar 3, 2000 · 2 comments
Closed

CVS OCaml #2385

vicuna opened this issue Mar 3, 2000 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 3, 2000

Original bug ID: 48
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Wolfram Kahl
Version: 2.99+7
OS: Solaris 7 and 2.6, Tru64Unix
Submission from: aspirateur.inria.fr (128.93.8.116)
Submitted by: doligez

Date: 1 Mar 2000 14:26:04 -0000
Message-ID: 20000301142604.9711.qmail@heraklit.informatik.unibw-muenchen.de
From: Wolfram Kahl kahl@heraklit.informatik.unibw-muenchen.de
To: garrigue@kurims.kyoto-u.ac.jp
Subject: CVS OCaml

Furthermore, my big stream parser xmlParse.ml does not want to be compiled
with -inline 2 or bigger --- ocamlopt then raises an uncaught
Array.get exception (on Solaris 7 and 2.6).
It works for -inline 1 and without -inline.
I include the source below --- I hope I didn't forget any utilities.

[source not included -- Damien]

@vicuna
Copy link
Author

vicuna commented Mar 3, 2000

Comment author: administrator

From: Wolfram Kahl kahl@heraklit.informatik.unibw-muenchen.de

Furthermore, my big stream parser xmlParse.ml does not want to be compiled
with -inline 2 or bigger --- ocamlopt then raises an uncaught
Array.get exception (on Solaris 7 and 2.6).
It works for -inline 1 and without -inline.

The problem seems to be at line 572 in asmcomp/selectgen.ml:
Istore(_, addr) when r.(0).typ = Float -> Istore(Double, addr)
but r can be the empty array.

I'm fixing it by replacing line 572 with these two lines:
| Istore(_, addr) when Array.length r > 0 && r.(0).typ = Float
-> Istore(Double, addr)

I'm not sure about the correctness of the fix. Xavier will have to confirm it.

-- Damien

@vicuna
Copy link
Author

vicuna commented Mar 6, 2000

Comment author: administrator

Fixed on 2000-03-06 by Xavier.

@vicuna vicuna closed this as completed Mar 6, 2000
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant