summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2017-10-30 12:44:20 +0000
committerpierre <pierre@3ad0048d-3df7-0310-abae-a5850022a9f2>2017-10-30 12:44:20 +0000
commitb04dbb3e1214c6d7dd527167afb79066e5ce739b (patch)
tree0f73bc00c9802ae755f3a74a1d8097703431cda1
parent82a51c945144a1b95c031e8c951172800c309e17 (diff)
downloadfpc-b04dbb3e1214c6d7dd527167afb79066e5ce739b.tar.gz
Merge of trunk commit number 37207
------------------------------------------------------------------------ r37207 | pierre | 2017-09-14 17:13:31 +0200 (Thu, 14 Sep 2017) | 1 line Fix error for jvm compiler ------------------------------------------------------------------------ git-svn-id: https://svn.freepascal.org/svn/fpc/branches/fixes_3_0@37529 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--compiler/utils/ppuutils/ppudump.pp30
1 files changed, 18 insertions, 12 deletions
diff --git a/compiler/utils/ppuutils/ppudump.pp b/compiler/utils/ppuutils/ppudump.pp
index c59a2fe67d..a39ea922f0 100644
--- a/compiler/utils/ppuutils/ppudump.pp
+++ b/compiler/utils/ppuutils/ppudump.pp
@@ -2497,11 +2497,12 @@ begin
write ([space,' DefaultConst : ']);
readderef('');
if (vo_has_mangledname in varoptions) then
-{$ifdef symansistr}
- writeln([space,' Mangledname : ',getansistring]);
-{$else symansistr}
- writeln([space,' Mangledname : ',getstring]);
-{$endif symansistr}
+ begin
+ if (tsystemcpu(ppufile.header.cpu) = cpu_jvm) then
+ writeln([space,' Mangled name : ',getansistring])
+ else
+ writeln([space,' Mangled name : ',getstring]);
+ end;
if vo_has_section in varoptions then
writeln(['Section name:',ppufile.getansistring]);
write ([space,' FieldVarSymDeref: ']);
@@ -2902,11 +2903,12 @@ begin
readcommondef('Procedure definition',defoptions,def);
read_abstract_proc_def(calloption,procoptions,TPpuProcDef(def));
if (po_has_mangledname in procoptions) then
-{$ifdef symansistr}
- writeln([space,' Mangled name : ',getansistring]);
-{$else symansistr}
- writeln([space,' Mangled name : ',getstring]);
-{$endif symansistr}
+ begin
+ if (tsystemcpu(ppufile.header.cpu) = cpu_jvm) then
+ writeln([space,' Mangled name : ',getansistring])
+ else
+ writeln([space,' Mangled name : ',getstring]);
+ end;
writeln([space,' Number : ',getword]);
writeln([space,' Level : ',getbyte]);
write ([space,' Class : ']);
@@ -2975,6 +2977,8 @@ begin
readcommondef('Procedural type (ProcVar) definition',defoptions,def);
read_abstract_proc_def(calloption,procoptions, TPpuProcDef(def));
writeln([space,' Symtable level :',ppufile.getbyte]);
+ if tsystemcpu(ppufile.header.cpu)=cpu_jvm then
+ readderef('');
if not EndOfEntry then
HasMoreInfos;
space:=' '+space;
@@ -3055,8 +3059,6 @@ begin
writeln([space,' DataSize : ',objdef.Size]);
writeln([space,' PaddingSize : ',getword]);
end;
- if not EndOfEntry then
- HasMoreInfos;
{read the record definitions and symbols}
if not(df_copied_def in current_defoptions) then
begin
@@ -3065,6 +3067,8 @@ begin
readsymtable('fields',TPpuRecordDef(def));
Delete(space,1,4);
end;
+ if not EndOfEntry then
+ HasMoreInfos;
end;
ibobjectdef :
@@ -3433,6 +3437,8 @@ begin
iblinkotherframeworks:
ReadLinkContainer('Link framework: ');
+ ibjvmnamespace:
+ Writeln('JVM name space: '+getString);
ibmainname:
Writeln(['Specified main program symbol name: ',getstring]);