Sfoglia il codice sorgente

Fix PPUDump on PowerPC systems

compiler/utils/ppuutils/ppudump, readdefinitions:
  * with the move of most target specific PPU data into the target specific sym types the location of the library symbol for the Amiga-like systems has changed

git-svn-id: trunk@33965 -
svenbarth 9 anni fa
parent
commit
22b0553be3
1 ha cambiato i file con 9 aggiunte e 6 eliminazioni
  1. 9 6
      compiler/utils/ppuutils/ppudump.pp

+ 9 - 6
compiler/utils/ppuutils/ppudump.pp

@@ -3030,12 +3030,6 @@ begin
              write  ([space,'       SymOptions : ']);
              readsymoptions(space+'       ');
              writeln  ([space,'   Synthetic kind : ',Synthetic2Str(ppufile.getbyte)]);
-             if tsystemcpu(ppufile.header.common.cpu)=cpu_powerpc then
-               begin
-                 { library symbol for AmigaOS/MorphOS }
-                 write  ([space,'   Library symbol : ']);
-                 readderef('');
-               end;
              if (po_has_importdll in procoptions) then
                writeln([space,'      Import DLL : ',getstring]);
              if (po_has_importname in procoptions) then
@@ -3074,6 +3068,15 @@ begin
                  ppufile.getdata(tokenbuf^,tokenbufsize);
                  freemem(tokenbuf);
                end;
+             if tsystemcpu(ppufile.header.common.cpu)=cpu_powerpc then
+               begin
+                 if po_syscall_has_libsym in procoptions then
+                   begin
+                     { library symbol for AmigaOS/MorphOS }
+                     write  ([space,'   Library symbol : ']);
+                     readderef('');
+                   end;
+               end;
              if not EndOfEntry then
                HasMoreInfos;
              space:='    '+space;