quick patch

Matthew Fluet fluet@research.nj.nec.com
Mon, 26 Jun 2000 12:06:38 -0400 (EDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--260724133-470231043-962035598=:1869
Content-Type: TEXT/PLAIN; charset=US-ASCII


Here's a quick patch to mlton-2000-06-25 which constrains the Operand.t
Offset variant to have integer offsets (as opposed to Operand.t offsets).
It also shuffles some functors from backend/sources.cm to
backend/c-codegen/sources.cm for modularity.  It's mostly for the
x86-codegen stuff, since that's probably going to have at least 3 or 4
different functors and signatures.

patch -Np1 < mlton-2000-06-26.patch

from the mlton-2000-06-25 directory.


--260724133-470231043-962035598=:1869
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="mlton-2000-06-26.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.10006261206380.1869@arsenal.nj.nec.com>
Content-Description: 
Content-Disposition: attachment; filename="mlton-2000-06-26.patch"

ZGlmZiAtTmF1ciBtbHRvbi0yMDAwLTA2LTI1L3NyYy9iYWNrZW5kL2JhY2tlbmQuZnVuIG1sdG9u
LTIwMDAtMDYtMjYvc3JjL2JhY2tlbmQvYmFja2VuZC5mdW4NCi0tLSBtbHRvbi0yMDAwLTA2LTI1
L3NyYy9iYWNrZW5kL2JhY2tlbmQuZnVuCVRodSBKdW4gMjIgMjI6NDQ6NDAgMjAwMA0KKysrIG1s
dG9uLTIwMDAtMDYtMjYvc3JjL2JhY2tlbmQvYmFja2VuZC5mdW4JTW9uIEp1biAyNiAxNTozNzoz
NiAyMDAwDQpAQCAtMzQ5LDggKzM0OSw4IEBADQogCSAgICAgIFByb3BlcnR5LmluaXRGdW4oZm4g
dCA9PiBzb3J0VHlwZXMoMCwgdG9NdHlwZXMoQ3R5cGUuZGV0dXBsZSB0KSkpKQ0KICAgICAgICBp
bg0KIAkgIHZhbCB0dXBsZUluZm8gPSBnZXQNCi0JICBmdW4gdHVwbGVPZmZ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