Le 01/02/2022 à 06:28, Thorsten Otto via fpc-devel a écrit :
On Freitag, 28. Januar 2022 13:55:11 CET Thorsten Otto via fpc-devel wrote: > Then i tried -Aas, but then the compiler also complains: > > > > Warning: (treated as error) Assembler output selected "AS" is not compatible > with "Atari ST/STE" > > Warning: (treated as error) "VASM" assembler use forced Bump ;) Any solution to this? Currently seems to be impossible to use gas at all.
Sometimes, you need to dig into the sources: look at compiler/m68k/ag68kgas.pas unit. You will see that atari is listed there: muller@gcc120:~/pas/trunk/fpcsrc/compiler/m68k$ grep -inC7 atari ag68kgas.pas 370- 371- as_m68k_as_aout_info : tasminfo = 372- ( 373- id : as_m68k_as_aout; 374- idtxt : 'AS-AOUT'; 375- asmbin : 'as'; 376- asmcmd : '$ARCH -o $OBJ $EXTRAOPT $ASM'; 377: supported_targets : [system_m68k_Amiga,system_m68k_Atari]; 378- flags : [af_needar]; 379- labelprefix : '.L'; 380- labelmaxlen : -1; 381- comment : '# '; 382- dollarsign: '$'; 383- ); The idtxt field is the string you need to use to enable GNU assembler for aout format, thus you should use -Aas-out compiler option. It is true that this entry is missing in ppc68k -h output... Pierre Pierre _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel