Browse Source

Handle asmextraopt in powerpc assmeblers

git-svn-id: trunk@26541 -
pierre 11 years ago
parent
commit
3f33fdd445
2 changed files with 6 additions and 6 deletions
  1. 1 1
      compiler/powerpc/agppcmpw.pas
  2. 5 5
      compiler/ppcgen/agppcgas.pas

+ 1 - 1
compiler/powerpc/agppcmpw.pas

@@ -1236,7 +1236,7 @@ interface
             id           : as_powerpc_mpw;
             idtxt  : 'MPW';
             asmbin : 'PPCAsm';
-            asmcmd : '-case on $ASM -o $OBJ';
+            asmcmd : '-case on $ASM $EXTRAOPT -o $OBJ';
             supported_targets : [system_powerpc_macos];
             flags : [af_needar,af_smartlink_sections,af_labelprefix_only_inside_procedure];
             labelprefix : '@';

+ 5 - 5
compiler/ppcgen/agppcgas.pas

@@ -539,9 +539,9 @@ unit agppcgas;
          idtxt  : 'AS';
          asmbin : 'as';
 {$ifdef cpu64bitaddr}
-         asmcmd : '-a64 -o $OBJ $ASM';
+         asmcmd : '-a64 -o $OBJ $EXTRAOPT $ASM';
 {$else cpu64bitaddr}
-         asmcmd: '-o $OBJ $ASM';
+         asmcmd: '-o $OBJ $EXTRAOPT $ASM';
 {$endif cpu64bitaddr}
          supported_targets : [system_powerpc_linux,system_powerpc_netbsd,system_powerpc_openbsd,system_powerpc_MorphOS,system_powerpc_Amiga,system_powerpc64_linux,system_powerpc_embedded,system_powerpc64_embedded];
          flags : [af_needar,af_smartlink_sections];
@@ -557,7 +557,7 @@ unit agppcgas;
 
          idtxt  : 'AS-Darwin';
          asmbin : 'as';
-         asmcmd : '-o $OBJ $ASM -arch $ARCH';
+         asmcmd : '-o $OBJ $EXTRAOPT $ASM -arch $ARCH';
          supported_targets : [system_powerpc_darwin,system_powerpc64_darwin];
          flags : [af_needar,af_smartlink_sections,af_supports_dwarf,af_stabs_use_function_absolute_addresses];
          labelprefix : 'L';
@@ -577,9 +577,9 @@ unit agppcgas;
            -mpwr5: we actually support Power3 and higher, but the AIX assembler
                has no parameter to select that one (only -mpwr3 and -mpwr5) }
 {$ifdef cpu64bitaddr}
-         asmcmd : '-a64 -u -o $OBJ $ASM -mpwr5';
+         asmcmd : '-a64 -u -o $OBJ $EXTRAOPT $ASM -mpwr5';
 {$else cpu64bitaddr}
-         asmcmd : '-u -o $OBJ $ASM -mpwr5';
+         asmcmd : '-u -o $OBJ $EXTRAOPT $ASM -mpwr5';
 {$endif cpu64bitaddr}
          supported_targets : [system_powerpc_aix,system_powerpc64_aix];
          flags : [af_needar,af_smartlink_sections,af_stabs_use_function_absolute_addresses];