[MLton-devel] Fwd: C back end for MLton

Brad Lucier lucier@math.purdue.edu
Mon, 4 Nov 2002 16:03:17 -0500 (EST)


> > basis/Int/quot.c: In function `Int_quot':
> > basis/Int/quot.c:10: error: asm-specifier for variable `eax' conflicts with
> >  asm clobber list
> 
> I tried changing line 6 of quot.c to
> 
> 	register int eax asm("eax");
> 
> and recompiled with gcc 2.96 without complaints.  Maybe that would be
> enough to make gcc 3.3 happy?  Can you try it out and let us know?

It didn't work:

gcc -Wall -I. -mcpu=pentiumpro -malign-loops=2 -malign-jumps=2 -malign-functions=5 -fomit-frame-pointer  -O1 -DNODEBUG -c -o basis/Int/quot.o basis/Int/quot.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
basis/Int/quot.c: In function `Int_quot':
basis/Int/quot.c:10: error: asm-specifier for variable `eax' conflicts with asm
clobber list

Perhaps it needs to be changed for the newer gccs; the online docs for asm
statements in gcc 3.2 are at

http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Extended-Asm.html#Extended%20Asm

Brad


-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel