mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 09:02:22 +01:00 
			
		
		
		
	Handle asmextraopt in powerpc, mips and sparc assemblers
git-svn-id: trunk@26542 -
This commit is contained in:
		
							parent
							
								
									3f33fdd445
								
							
						
					
					
						commit
						5e6669890a
					
				@ -42,7 +42,7 @@ unit cpugas;
 | 
			
		||||
      end;
 | 
			
		||||
 | 
			
		||||
    const
 | 
			
		||||
      use_std_regnames : boolean = 
 | 
			
		||||
      use_std_regnames : boolean =
 | 
			
		||||
      {$ifndef USE_MIPS_GAS_REGS}
 | 
			
		||||
      true;
 | 
			
		||||
      {$else}
 | 
			
		||||
@ -379,7 +379,7 @@ unit cpugas;
 | 
			
		||||
        id: as_gas;
 | 
			
		||||
        idtxt: 'AS';
 | 
			
		||||
        asmbin: 'as';
 | 
			
		||||
        asmcmd: '$ABI $ARCH $NOWARN -EL $PIC -o $OBJ $ASM';
 | 
			
		||||
        asmcmd: '$ABI $ARCH $NOWARN -EL $PIC -o $OBJ $EXTRAOPT $ASM';
 | 
			
		||||
        supported_targets: [system_mipsel_linux];
 | 
			
		||||
        flags: [ af_needar, af_smartlink_sections];
 | 
			
		||||
        labelprefix: '.L';
 | 
			
		||||
@ -391,7 +391,7 @@ unit cpugas;
 | 
			
		||||
        id: as_gas;
 | 
			
		||||
        idtxt: 'AS';
 | 
			
		||||
        asmbin: 'as';
 | 
			
		||||
        asmcmd: '$ABI $ARCH $NOWARN -EB $PIC -o $OBJ $ASM';
 | 
			
		||||
        asmcmd: '$ABI $ARCH $NOWARN -EB $PIC -o $OBJ $EXTRAOPT $ASM';
 | 
			
		||||
        supported_targets: [system_mipseb_linux];
 | 
			
		||||
        flags: [ af_needar, af_smartlink_sections];
 | 
			
		||||
        labelprefix: '.L';
 | 
			
		||||
 | 
			
		||||
@ -379,6 +379,7 @@ unit agppcvasm;
 | 
			
		||||
           Replace(result,'$ASM',maybequoted(Unix2AmigaPath(AsmFileName)));
 | 
			
		||||
           Replace(result,'$OBJ',maybequoted(Unix2AmigaPath(ObjFileName)));
 | 
			
		||||
         end;
 | 
			
		||||
        Replace(result,'$EXTRAOPT',asmextraopt);
 | 
			
		||||
      end;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -394,7 +395,7 @@ unit agppcvasm;
 | 
			
		||||
 | 
			
		||||
         idtxt  : 'VASM';
 | 
			
		||||
         asmbin : 'fpcvasm';
 | 
			
		||||
         asmcmd: '-quiet -Felf -o $OBJ $ASM';
 | 
			
		||||
         asmcmd: '-quiet -Felf -o $OBJ $EXTRAOPT $ASM';
 | 
			
		||||
         supported_targets : [system_powerpc_morphos];
 | 
			
		||||
         flags : [af_needar,af_smartlink_sections];
 | 
			
		||||
         labelprefix : '.L';
 | 
			
		||||
 | 
			
		||||
@ -224,9 +224,9 @@ implementation
 | 
			
		||||
           idtxt  : 'AS';
 | 
			
		||||
           asmbin : 'as';
 | 
			
		||||
{$ifdef FPC_SPARC_V8_ONLY}
 | 
			
		||||
           asmcmd : '$PIC -o $OBJ $ASM';
 | 
			
		||||
           asmcmd : '$PIC -o $OBJ $EXTRAOPT $ASM';
 | 
			
		||||
{$else}
 | 
			
		||||
           asmcmd : '$ARCH $PIC -o $OBJ $ASM';
 | 
			
		||||
           asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM';
 | 
			
		||||
{$endif}
 | 
			
		||||
           supported_targets : [system_sparc_solaris,system_sparc_linux,system_sparc_embedded];
 | 
			
		||||
           flags : [af_needar,af_smartlink_sections];
 | 
			
		||||
@ -240,7 +240,7 @@ implementation
 | 
			
		||||
           id     : as_ggas;
 | 
			
		||||
           idtxt  : 'GAS';
 | 
			
		||||
           asmbin : 'gas';
 | 
			
		||||
           asmcmd : '$ARCH $PIC -o $OBJ $ASM';
 | 
			
		||||
           asmcmd : '$ARCH $PIC -o $OBJ $EXTRAOPT $ASM';
 | 
			
		||||
           supported_targets : [system_sparc_solaris,system_sparc_linux,system_sparc_embedded];
 | 
			
		||||
           flags : [af_needar,af_smartlink_sections];
 | 
			
		||||
           labelprefix : '.L';
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user