1

I get these bugs of compilation, on my Fedora 11 x86_64 :
PedroM.asm line 36
 1895           moveq   #$FFFFFFFF,d7                   ; ARC_ST_OID
                        ^ Operand size error.                       
8600                                                                
Heap.asm line 127                                                   
PedroM.asm line 44                                                  
 8652           moveq   #$FFFFFFFE,d1           ; Word Alignement   
                        ^ Operand size error.                       
9000                                                                
Heap.asm line 493                                                   
PedroM.asm line 44                                                  
 9018           moveq   #$FFFFFFFE,d1           ; Word Alignement   
                        ^ Operand size error.

It works fine if I replace that with negative values (#-1, #-2).

I don't know enough C and 64 bits specificities to suggest a patch... sorry ...

2

I've never looked at the A68k sources... PpHd ?
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

3

Please post a ticket on the Trac, so that this does not fall into oblivion smile
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

4

Ok.

5

Something has been done on this?

6

Not yet.
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

7

The following one-liner, which forces sign extension, fixes this particular problem for me:

diff --git a/trunk/external/a68k/source/Codegen.c b/trunk/external/a68k/source/Codegen.c
index a3ccbcb..bc06b54 100755
--- a/trunk/external/a68k/source/Codegen.c
+++ b/trunk/external/a68k/source/Codegen.c
@@ -136,7 +136,7 @@ void GetObjectCode (__NO_PARAMS__) /* using now void in v.2.71.F3d - Kevin Kofle
     }

     /* added by Kevin Kofler in v.2.71.F3l: */
-    SrcVal=Src.Value;
+    SrcVal=(long)((int)(Src.Value));
     {struct AddrDiff *p=SrcAddrDiffs;
      while (p) {
        SrcVal+=p->paddr-p->naddr;
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.

8

Your patch works top

btw -> GCC4TI installs and runs fine under Fedora 12 64 bits

ps -> do you the list of all warnings I've got when compiling ? grin

9

Thanks for the reports (that the patch works and that GCC4TI's build scripts work for F12 x86_64) wink
ps -> do you want the list of all warnings I've got when compiling ? grin

Of course, at least those affecting other programs than binutils and GCC smile
avatar
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
Co-admin de TI-Planet.