From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Paul Bristow <paul@cee.hw.ac.uk>, caml-list@inria.fr
Subject: Re: Objective Caml 2 with RedHat 5.1
Date: Thu, 15 Oct 1998 19:17:55 +0200 [thread overview]
Message-ID: <19981015191755.10975@pauillac.inria.fr> (raw)
In-Reply-To: <3624BDB3.82231609@cee.hw.ac.uk>; from Paul Bristow on Wed, Oct 14, 1998 at 04:05:24PM +0100
> I've recently upgraded to RedHat (Linux) 5.1 and am having
problems.
> [...]
> interp.c:983: fixed or forbidden register was spilled.
> This may be due to a compiler bug or to impossible asm
> statements or clauses.
Several users have reported this problem. It looks like the "asm"
statements for the Intel x86 in byterun/interp.c don't work with gcc
2.8 nor egcs (but they work OK with gcc 2.7). The one-line patch
below fixes this problem.
If you're using RedHat 5.1, you can also download pre-compiled RPM
binaries from our FTP site (ftp.inria.fr:/lang/caml-light).
- Xavier Leroy
Index: csl/byterun/interp.c
diff -c csl/byterun/interp.c:1.46 csl/byterun/interp.c:1.47
*** csl/byterun/interp.c:1.46 Tue Jun 23 18:47:02 1998
--- csl/byterun/interp.c Mon Sep 7 09:57:05 1998
***************
*** 9,15 ****
/* */
/***********************************************************************/
! /* $Id: interp.c,v 1.46 1998/06/23 16:47:02 xleroy Exp $ */
/* The bytecode interpreter */
--- 9,15 ----
/* */
/***********************************************************************/
! /* $Id: interp.c,v 1.47 1998/09/07 07:57:05 xleroy Exp $ */
/* The bytecode interpreter */
***************
*** 124,130 ****
#ifdef __i386__
#define PC_REG asm("%esi")
#define SP_REG asm("%edi")
! #define ACCU_REG asm("%ebx")
#endif
#if defined(PPC) || defined(_POWER) || defined(_IBMR2)
#define PC_REG asm("26")
--- 124,130 ----
#ifdef __i386__
#define PC_REG asm("%esi")
#define SP_REG asm("%edi")
! #define ACCU_REG
#endif
#if defined(PPC) || defined(_POWER) || defined(_IBMR2)
#define PC_REG asm("26")
next prev parent reply other threads:[~1998-10-16 11:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-14 15:05 Paul Bristow
1998-10-15 17:17 ` Xavier Leroy [this message]
1998-10-16 0:05 ` David Monniaux
1998-10-16 0:54 ` building ocaml-2.00 with egcs Jens-Ulrik Petersen
1998-10-16 23:33 ` building ocaml-2.00 with gcc-2.7.2.3 Jens-Ulrik Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19981015191755.10975@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=paul@cee.hw.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox