I'll see what I can do as far as upgrading my lcc installation or 
reporting this as a bug to the lcc people.  But for now, here is a 
workaround for this error, just to get the tinderbox going again:

lcc -I./include  -DHAS_JIT -o test_main.o -c test_main.c
/tmp/lcc62401.s: Assembler messages:
/tmp/lcc62401.s:359: Error: no instruction mnemonic suffix given and no register 
operands; can't size instruction

Without this change, it generates "add $1024,-52(%ebp)".  With it, it generates
"addl $1024,-52(%ebp)".


Index: test_main.c
===================================================================
RCS file: /home/perlcvs/parrot/test_main.c,v
retrieving revision 1.30
diff -u -r1.30 test_main.c
--- test_main.c 8 Jan 2002 11:34:39 -0000       1.30
+++ test_main.c 9 Jan 2002 07:20:30 -0000
@@ -158,8 +158,13 @@
     }
     /* Otherwise load in the program they gave and try that, or - */
     else {
-        opcode_t *program_code;        
+        opcode_t *program_code;
+#ifdef __LCC__
+        /* work around for a code generation bug in our lcc test environment */
+        int program_size;
+#else       
         size_t program_size;
+#endif       
         struct stat file_stat;
         int fd;
         struct PackFile * pf;


Reply via email to