Browse Source

* patch by Marģers to unify internal error numbers, resolves #37888

git-svn-id: trunk@47103 -
florian 4 years ago
parent
commit
637976e83f
100 changed files with 355 additions and 355 deletions
  1. 1 1
      compiler/aarch64/aasmcpu.pas
  2. 1 1
      compiler/aarch64/agcpugas.pas
  3. 2 2
      compiler/aarch64/cgcpu.pas
  4. 1 1
      compiler/aarch64/cpupara.pas
  5. 1 1
      compiler/aarch64/hlcgcpu.pas
  6. 1 1
      compiler/aarch64/ncpuflw.pas
  7. 1 1
      compiler/aarch64/racpugas.pas
  8. 1 1
      compiler/aasmbase.pas
  9. 1 1
      compiler/aasmcnst.pas
  10. 3 3
      compiler/arm/aasmcpu.pas
  11. 2 2
      compiler/arm/agarmgas.pas
  12. 28 28
      compiler/arm/cgcpu.pas
  13. 1 1
      compiler/arm/cpuelf.pas
  14. 1 1
      compiler/arm/cpupara.pas
  15. 1 1
      compiler/arm/hlcgcpu.pas
  16. 2 2
      compiler/arm/narmadd.pas
  17. 7 7
      compiler/arm/narmcnv.pas
  18. 1 1
      compiler/arm/narminl.pas
  19. 1 1
      compiler/arm/narmld.pas
  20. 1 1
      compiler/arm/narmmat.pas
  21. 1 1
      compiler/arm/raarmgas.pas
  22. 2 2
      compiler/arm/rgcpu.pas
  23. 3 3
      compiler/assemble.pas
  24. 2 2
      compiler/avr/aasmcpu.pas
  25. 1 1
      compiler/avr/agavrgas.pas
  26. 10 10
      compiler/avr/cgcpu.pas
  27. 1 1
      compiler/avr/cpupara.pas
  28. 1 1
      compiler/avr/navrmat.pas
  29. 2 2
      compiler/avr/raavrgas.pas
  30. 1 1
      compiler/cg64f32.pas
  31. 10 10
      compiler/cgobj.pas
  32. 2 2
      compiler/dbgdwarf.pas
  33. 1 1
      compiler/dbgstabs.pas
  34. 3 3
      compiler/fpcp.pas
  35. 1 1
      compiler/hlcg2ll.pas
  36. 12 12
      compiler/hlcgobj.pas
  37. 6 6
      compiler/i386/cgcpu.pas
  38. 1 1
      compiler/i386/cpuelf.pas
  39. 2 2
      compiler/i386/cpupara.pas
  40. 2 2
      compiler/i386/hlcgcpu.pas
  41. 3 3
      compiler/i386/n386add.pas
  42. 1 1
      compiler/i386/n386flw.pas
  43. 1 1
      compiler/i386/n386mat.pas
  44. 45 45
      compiler/i8086/cgcpu.pas
  45. 3 3
      compiler/i8086/cpupara.pas
  46. 2 2
      compiler/i8086/hlcgcpu.pas
  47. 6 6
      compiler/i8086/n8086add.pas
  48. 2 2
      compiler/i8086/n8086inl.pas
  49. 1 1
      compiler/i8086/n8086ld.pas
  50. 1 1
      compiler/i8086/n8086mat.pas
  51. 3 3
      compiler/i8086/n8086mem.pas
  52. 1 1
      compiler/i8086/symcpu.pas
  53. 1 1
      compiler/jvm/agjasmin.pas
  54. 4 4
      compiler/jvm/hlcgcpu.pas
  55. 2 2
      compiler/jvm/jvmdef.pas
  56. 1 1
      compiler/jvm/njvmcnv.pas
  57. 3 3
      compiler/jvm/njvmmem.pas
  58. 2 2
      compiler/jvm/njvmtcon.pas
  59. 3 3
      compiler/jvm/pjvm.pas
  60. 1 1
      compiler/llvm/aasmllvm.pas
  61. 5 5
      compiler/llvm/agllvm.pas
  62. 5 5
      compiler/llvm/hlcgllvm.pas
  63. 1 1
      compiler/llvm/llvmdef.pas
  64. 2 2
      compiler/llvm/llvmpara.pas
  65. 1 1
      compiler/llvm/llvmpi.pas
  66. 2 2
      compiler/llvm/llvmtype.pas
  67. 1 1
      compiler/llvm/nllvmmem.pas
  68. 1 1
      compiler/llvm/nllvmtcon.pas
  69. 7 7
      compiler/m68k/cgcpu.pas
  70. 1 1
      compiler/m68k/cpupara.pas
  71. 1 1
      compiler/m68k/n68kadd.pas
  72. 1 1
      compiler/m68k/n68kcal.pas
  73. 1 1
      compiler/m68k/n68kmat.pas
  74. 1 1
      compiler/m68k/n68kmem.pas
  75. 4 4
      compiler/mips/aasmcpu.pas
  76. 1 1
      compiler/mips/cgcpu.pas
  77. 1 1
      compiler/mips/cpuelf.pas
  78. 1 1
      compiler/mips/cpugas.pas
  79. 1 1
      compiler/mips/hlcgcpu.pas
  80. 1 1
      compiler/mips/ncpucnv.pas
  81. 1 1
      compiler/mips/ncpuinln.pas
  82. 3 3
      compiler/mips/racpugas.pas
  83. 1 1
      compiler/nadd.pas
  84. 1 1
      compiler/nbas.pas
  85. 2 2
      compiler/ncgadd.pas
  86. 1 1
      compiler/ncgcal.pas
  87. 1 1
      compiler/ncgcon.pas
  88. 12 12
      compiler/ncginl.pas
  89. 2 2
      compiler/ncnv.pas
  90. 1 1
      compiler/ngenutil.pas
  91. 3 3
      compiler/ngtcon.pas
  92. 14 14
      compiler/ninl.pas
  93. 2 2
      compiler/nmat.pas
  94. 10 10
      compiler/ogbase.pas
  95. 5 5
      compiler/ogcoff.pas
  96. 14 14
      compiler/ogomf.pas
  97. 1 1
      compiler/ogrel.pas
  98. 30 30
      compiler/omfbase.pas
  99. 1 1
      compiler/options.pas
  100. 3 3
      compiler/optloadmodifystore.pas

+ 1 - 1
compiler/aarch64/aasmcpu.pas

@@ -569,7 +569,7 @@ implementation
           R_MMREGISTER:
           R_MMREGISTER:
             result:=taicpu.op_reg_ref(op,r,ref);
             result:=taicpu.op_reg_ref(op,r,ref);
           else
           else
-            internalerror(200401041);
+            internalerror(2004010407);
         end;
         end;
       end;
       end;
 
 

+ 1 - 1
compiler/aarch64/agcpugas.pas

@@ -650,7 +650,7 @@ unit agcpugas;
                 else
                 else
                   begin
                   begin
                     if ref.refaddr<>addr_no then
                     if ref.refaddr<>addr_no then
-                      internalerror(2014121506);
+                      internalerror(2014121502);
                     if (ref.offset<>0) then
                     if (ref.offset<>0) then
                       result:=result+', #'+tostr(ref.offset);
                       result:=result+', #'+tostr(ref.offset);
                   end;
                   end;

+ 2 - 2
compiler/aarch64/cgcpu.pas

@@ -274,7 +274,7 @@ implementation
               { todo }
               { todo }
               A_LD1,A_LD2,A_LD3,A_LD4,
               A_LD1,A_LD2,A_LD3,A_LD4,
               A_ST1,A_ST2,A_ST3,A_ST4:
               A_ST1,A_ST2,A_ST3,A_ST4:
-                internalerror(2014110704);
+                internalerror(2014110702);
               { these don't support base+index }
               { these don't support base+index }
               A_LDUR,A_STUR,
               A_LDUR,A_STUR,
               A_LDP,A_STP:
               A_LDP,A_STP:
@@ -301,7 +301,7 @@ implementation
                     offset may still be too big }
                     offset may still be too big }
                 end;
                 end;
               else
               else
-                internalerror(2014110901);
+                internalerror(2014110903);
             end;
             end;
           end;
           end;
 
 

+ 1 - 1
compiler/aarch64/cpupara.pas

@@ -682,7 +682,7 @@ unit cpupara;
             result:=curstackoffset;
             result:=curstackoffset;
           end
           end
         else
         else
-          internalerror(200410231);
+          internalerror(2004102303);
 
 
         create_funcretloc_info(p,side);
         create_funcretloc_info(p,side);
       end;
       end;

+ 1 - 1
compiler/aarch64/hlcgcpu.pas

@@ -184,7 +184,7 @@ implementation
           not is_objectpascal_helper(procdef.struct) then
           not is_objectpascal_helper(procdef.struct) then
         begin
         begin
           if (procdef.extnumber=$ffff) then
           if (procdef.extnumber=$ffff) then
-            Internalerror(200006139);
+            Internalerror(2000061302);
           { mov  0(%rdi),%rax ; load vmt}
           { mov  0(%rdi),%rax ; load vmt}
           reference_reset_base(href,voidpointertype,paraloc^.register,0,ctempposinvalid,sizeof(pint),[]);
           reference_reset_base(href,voidpointertype,paraloc^.register,0,ctempposinvalid,sizeof(pint),[]);
           getcpuregister(list,NR_IP0);
           getcpuregister(list,NR_IP0);

+ 1 - 1
compiler/aarch64/ncpuflw.pas

@@ -355,7 +355,7 @@ function taarch64tryfinallynode.dogetcopy: tnode;
     if (target_info.system=system_aarch64_win64) then
     if (target_info.system=system_aarch64_win64) then
       begin
       begin
         if df_generic in current_procinfo.procdef.defoptions then
         if df_generic in current_procinfo.procdef.defoptions then
-          InternalError(2020033101);
+          InternalError(2020033104);
 
 
         p.finalizepi:=tcgprocinfo(current_procinfo.create_for_outlining('$fin$',current_procinfo.procdef.struct,potype_exceptfilter,voidtype,p.right));
         p.finalizepi:=tcgprocinfo(current_procinfo.create_for_outlining('$fin$',current_procinfo.procdef.struct,potype_exceptfilter,voidtype,p.right));
         if pi_do_call in finalizepi.flags then
         if pi_do_call in finalizepi.flags then

+ 1 - 1
compiler/aarch64/racpugas.pas

@@ -859,7 +859,7 @@ Unit racpugas;
                        OPR_REFERENCE :
                        OPR_REFERENCE :
                          inc(oper.opr.ref.offset,l);
                          inc(oper.opr.ref.offset,l);
                        else
                        else
-                         internalerror(200309202);
+                         internalerror(2003092005);
                      end;
                      end;
                    end
                    end
                end;
                end;

+ 1 - 1
compiler/aasmbase.pas

@@ -313,7 +313,7 @@ implementation
             Delete(Result,(Length(Result)-charstoremove) div 2,charstoremove);
             Delete(Result,(Length(Result)-charstoremove) div 2,charstoremove);
             Result:='_'+target_asm.dollarsign+'CRC'+hexstr(crc,8)+Result;
             Result:='_'+target_asm.dollarsign+'CRC'+hexstr(crc,8)+Result;
             if Length(Result)>target_asm.labelmaxlen then
             if Length(Result)>target_asm.labelmaxlen then
-              Internalerror(2020042501);
+              Internalerror(2020042502);
           end;
           end;
       end;
       end;
 
 

+ 1 - 1
compiler/aasmcnst.pas

@@ -1312,7 +1312,7 @@ implementation
        else if (assigned(finternal_data_asmlist) and
        else if (assigned(finternal_data_asmlist) and
            (list<>finternal_data_asmlist)) or
            (list<>finternal_data_asmlist)) or
            not assigned(list) then
            not assigned(list) then
-         internalerror(2015032101);
+         internalerror(2015032102);
        finternal_data_asmlist:=list;
        finternal_data_asmlist:=list;
        if not assigned(l) then
        if not assigned(l) then
          l:=get_internal_data_section_internal_label;
          l:=get_internal_data_section_internal_label;

+ 3 - 3
compiler/arm/aasmcpu.pas

@@ -723,7 +723,7 @@ implementation
           R_MMREGISTER :
           R_MMREGISTER :
             result:=taicpu.op_reg_ref(A_VLDR,r,ref);
             result:=taicpu.op_reg_ref(A_VLDR,r,ref);
           else
           else
-            internalerror(200401041);
+            internalerror(2004010415);
         end;
         end;
       end;
       end;
 
 
@@ -741,7 +741,7 @@ implementation
           R_MMREGISTER :
           R_MMREGISTER :
             result:=taicpu.op_reg_ref(A_VSTR,r,ref);
             result:=taicpu.op_reg_ref(A_VSTR,r,ref);
           else
           else
-            internalerror(200401041);
+            internalerror(2004010416);
         end;
         end;
       end;
       end;
 
 
@@ -925,7 +925,7 @@ implementation
             else
             else
               begin
               begin
                 writeln(opcode);
                 writeln(opcode);
-                internalerror(200403151);
+                internalerror(2004031502);
               end;
               end;
           end;
           end;
       end;
       end;

+ 2 - 2
compiler/arm/agarmgas.pas

@@ -238,7 +238,7 @@ unit agarmgas;
                      else if shiftmode <> SM_None then
                      else if shiftmode <> SM_None then
                        s:=s+', '+gas_shiftmode2str[shiftmode]+' #'+tostr(shiftimm);
                        s:=s+', '+gas_shiftmode2str[shiftmode]+' #'+tostr(shiftimm);
                      if offset<>0 then
                      if offset<>0 then
-                       Internalerror(2019012601);
+                       Internalerror(2019012602);
                   end
                   end
                 else if offset<>0 then
                 else if offset<>0 then
                   s:=s+', #'+tostr(offset);
                   s:=s+', #'+tostr(offset);
@@ -426,7 +426,7 @@ unit agarmgas;
                      top_const:
                      top_const:
                        s:=s+sep+tostr(taicpu(hp).oper[1]^.val);
                        s:=s+sep+tostr(taicpu(hp).oper[1]^.val);
                      else
                      else
-                       internalerror(200311292);
+                       internalerror(2003112903);
                    end;
                    end;
                  end
                  end
                else
                else

+ 28 - 28
compiler/arm/cgcpu.pas

@@ -329,7 +329,7 @@ unit cgcpu;
           imm1, imm2: DWord;
           imm1, imm2: DWord;
        begin
        begin
           if not(size in [OS_8,OS_S8,OS_16,OS_S16,OS_32,OS_S32]) then
           if not(size in [OS_8,OS_S8,OS_16,OS_S16,OS_32,OS_S32]) then
-            internalerror(2002090902);
+            internalerror(2002090907);
           if is_shifter_const(a,imm_shift) then
           if is_shifter_const(a,imm_shift) then
             list.concat(taicpu.op_reg_const(A_MOV,reg,a))
             list.concat(taicpu.op_reg_const(A_MOV,reg,a))
           else if is_shifter_const(not(a),imm_shift) then
           else if is_shifter_const(not(a),imm_shift) then
@@ -516,7 +516,7 @@ unit cgcpu;
         hsym:=tsym(procdef.parast.Find('self'));
         hsym:=tsym(procdef.parast.Find('self'));
         if not(assigned(hsym) and
         if not(assigned(hsym) and
           (hsym.typ=paravarsym)) then
           (hsym.typ=paravarsym)) then
-          internalerror(200305251);
+          internalerror(2003052503);
         paraloc:=tparavarsym(hsym).paraloc[callerside].location;
         paraloc:=tparavarsym(hsym).paraloc[callerside].location;
         while paraloc<>nil do
         while paraloc<>nil do
           with paraloc^ do
           with paraloc^ do
@@ -546,7 +546,7 @@ unit cgcpu;
                       end;
                       end;
                   end
                   end
                 else
                 else
-                  internalerror(200309189);
+                  internalerror(2003091803);
               end;
               end;
               paraloc:=next;
               paraloc:=next;
             end;
             end;
@@ -1089,7 +1089,7 @@ unit cgcpu;
           OP_ROL:
           OP_ROL:
             begin
             begin
               if not(size in [OS_32,OS_S32]) then
               if not(size in [OS_32,OS_S32]) then
-                internalerror(2008072801);
+                internalerror(2008072804);
               { simulate ROL by ror'ing 32-value }
               { simulate ROL by ror'ing 32-value }
               tmpreg:=getintregister(list,OS_32);
               tmpreg:=getintregister(list,OS_32);
               list.concat(taicpu.op_reg_reg_const(A_RSB,tmpreg,src1, 32));
               list.concat(taicpu.op_reg_reg_const(A_RSB,tmpreg,src1, 32));
@@ -1210,7 +1210,7 @@ unit cgcpu;
         if (ref.base=NR_NO) then
         if (ref.base=NR_NO) then
           begin
           begin
             if ref.shiftmode<>SM_None then
             if ref.shiftmode<>SM_None then
-              internalerror(2014020701);
+              internalerror(2014020707);
             ref.base:=ref.index;
             ref.base:=ref.index;
             ref.index:=NR_NO;
             ref.index:=NR_NO;
           end;
           end;
@@ -1368,7 +1368,7 @@ unit cgcpu;
            OS_F32:
            OS_F32:
              oppostfix:=PF_None;
              oppostfix:=PF_None;
            else
            else
-             InternalError(200308299);
+             InternalError(2003082912);
          end;
          end;
 
 
          if ((ref.alignment in [1,2]) and (ref.alignment<tcgsize2size[tosize])) or
          if ((ref.alignment in [1,2]) and (ref.alignment<tcgsize2size[tosize])) or
@@ -2187,7 +2187,7 @@ unit cgcpu;
                   mmregs:=(rg[R_MMREGISTER].used_in_proc-paramanager.get_volatile_registers_mm(pocall_stdcall))*[0..31];
                   mmregs:=(rg[R_MMREGISTER].used_in_proc-paramanager.get_volatile_registers_mm(pocall_stdcall))*[0..31];
                 end
                 end
               else
               else
-                internalerror(2019050926);
+                internalerror(2019050908);
             end;
             end;
 
 
             if (firstfloatreg<>RS_NO) or
             if (firstfloatreg<>RS_NO) or
@@ -3193,14 +3193,14 @@ unit cgcpu;
               tosize:=OS_F32;
               tosize:=OS_F32;
               { since we are loading an integer, no conversion may be required }
               { since we are loading an integer, no conversion may be required }
               if (fromsize<>tosize) then
               if (fromsize<>tosize) then
-                internalerror(2009112801);
+                internalerror(2009112802);
             end;
             end;
           OS_64,OS_S64:
           OS_64,OS_S64:
             begin
             begin
               tosize:=OS_F64;
               tosize:=OS_F64;
               { since we are loading an integer, no conversion may be required }
               { since we are loading an integer, no conversion may be required }
               if (fromsize<>tosize) then
               if (fromsize<>tosize) then
-                internalerror(2009112901);
+                internalerror(2009112902);
             end;
             end;
           OS_F32,OS_F64:
           OS_F32,OS_F64:
             ;
             ;
@@ -3264,7 +3264,7 @@ unit cgcpu;
         if (fromsize<>OS_F32) then
         if (fromsize<>OS_F32) then
           internalerror(2009112430);
           internalerror(2009112430);
         if not(tosize in [OS_32,OS_S32]) then
         if not(tosize in [OS_32,OS_S32]) then
-          internalerror(2009112420);
+          internalerror(2009112409);
         if assigned(shuffle) and
         if assigned(shuffle) and
            not shufflescalar(shuffle) then
            not shufflescalar(shuffle) then
           internalerror(2009112514);
           internalerror(2009112514);
@@ -3595,7 +3595,7 @@ unit cgcpu;
                   list.concat(setoppostfix(taicpu.op_reg_reg_reg(A_SBC,regdst.reghi,regsrc2.reghi,regsrc1.reghi),PF_S));
                   list.concat(setoppostfix(taicpu.op_reg_reg_reg(A_SBC,regdst.reghi,regsrc2.reghi,regsrc1.reghi),PF_S));
                 end;
                 end;
               else
               else
-                internalerror(2003083101);
+                internalerror(2003083102);
             end;
             end;
             if size=OS_64 then
             if size=OS_64 then
               begin
               begin
@@ -3634,7 +3634,7 @@ unit cgcpu;
                   cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                   cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                 end;
                 end;
               else
               else
-                internalerror(2003083101);
+                internalerror(2003083104);
             end;
             end;
           end;
           end;
       end;
       end;
@@ -3976,7 +3976,7 @@ unit cgcpu;
           hr : treference;
           hr : treference;
        begin
        begin
           if not(size in [OS_8,OS_S8,OS_16,OS_S16,OS_32,OS_S32]) then
           if not(size in [OS_8,OS_S8,OS_16,OS_S16,OS_32,OS_S32]) then
-            internalerror(2002090902);
+            internalerror(2002090908);
           if is_thumb_imm(a) then
           if is_thumb_imm(a) then
             list.concat(taicpu.op_reg_const(A_MOV,reg,a))
             list.concat(taicpu.op_reg_const(A_MOV,reg,a))
           else
           else
@@ -4008,7 +4008,7 @@ unit cgcpu;
         hsym:=tsym(procdef.parast.Find('self'));
         hsym:=tsym(procdef.parast.Find('self'));
         if not(assigned(hsym) and
         if not(assigned(hsym) and
           (hsym.typ=paravarsym)) then
           (hsym.typ=paravarsym)) then
-          internalerror(200305251);
+          internalerror(2003052504);
         paraloc:=tparavarsym(hsym).paraloc[callerside].location;
         paraloc:=tparavarsym(hsym).paraloc[callerside].location;
         while paraloc<>nil do
         while paraloc<>nil do
           with paraloc^ do
           with paraloc^ do
@@ -4058,7 +4058,7 @@ unit cgcpu;
                       end;
                       end;
                   end
                   end
                 else
                 else
-                  internalerror(200309189);
+                  internalerror(2003091804);
               end;
               end;
               paraloc:=next;
               paraloc:=next;
             end;
             end;
@@ -4145,7 +4145,7 @@ unit cgcpu;
           OP_ROL:
           OP_ROL:
             begin
             begin
               if not(size in [OS_32,OS_S32]) then
               if not(size in [OS_32,OS_S32]) then
-                internalerror(2008072801);
+                internalerror(2008072805);
               { simulate ROL by ror'ing 32-value }
               { simulate ROL by ror'ing 32-value }
               tmpreg:=getintregister(list,OS_32);
               tmpreg:=getintregister(list,OS_32);
               a_load_const_reg(list,OS_32,32,tmpreg);
               a_load_const_reg(list,OS_32,32,tmpreg);
@@ -4227,7 +4227,7 @@ unit cgcpu;
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a-1,l1) and not(cgsetflags or setflags) then
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a-1,l1) and not(cgsetflags or setflags) then
               begin
               begin
                 if l1>32 then{roozbeh does this ever happen?}
                 if l1>32 then{roozbeh does this ever happen?}
-                  internalerror(200308296);
+                  internalerror(2003082903);
                 shifterop_reset(so);
                 shifterop_reset(so);
                 so.shiftmode:=SM_LSL;
                 so.shiftmode:=SM_LSL;
                 so.shiftimm:=l1;
                 so.shiftimm:=l1;
@@ -4237,7 +4237,7 @@ unit cgcpu;
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a+1,l1) and not(cgsetflags or setflags) then
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a+1,l1) and not(cgsetflags or setflags) then
               begin
               begin
                 if l1>32 then{does this ever happen?}
                 if l1>32 then{does this ever happen?}
-                  internalerror(201205181);
+                  internalerror(2012051802);
                 shifterop_reset(so);
                 shifterop_reset(so);
                 so.shiftmode:=SM_LSL;
                 so.shiftmode:=SM_LSL;
                 so.shiftimm:=l1;
                 so.shiftimm:=l1;
@@ -4384,7 +4384,7 @@ unit cgcpu;
           hr : treference;
           hr : treference;
        begin
        begin
           if not(size in [OS_8,OS_S8,OS_16,OS_S16,OS_32,OS_S32]) then
           if not(size in [OS_8,OS_S8,OS_16,OS_S16,OS_32,OS_S32]) then
-            internalerror(2002090902);
+            internalerror(2002090909);
           if is_thumb32_imm(a) then
           if is_thumb32_imm(a) then
             list.concat(taicpu.op_reg_const(A_MOV,reg,a))
             list.concat(taicpu.op_reg_const(A_MOV,reg,a))
           else if is_thumb32_imm(not(a)) then
           else if is_thumb32_imm(not(a)) then
@@ -4431,7 +4431,7 @@ unit cgcpu;
            OS_S32:
            OS_S32:
              oppostfix:=PF_None;
              oppostfix:=PF_None;
            else
            else
-             InternalError(200308299);
+             InternalError(2003082913);
          end;
          end;
          if (ref.alignment in [1,2]) and (ref.alignment<tcgsize2size[fromsize]) then
          if (ref.alignment in [1,2]) and (ref.alignment<tcgsize2size[fromsize]) then
            begin
            begin
@@ -4702,7 +4702,7 @@ unit cgcpu;
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a-1,l1) and not(cgsetflags or setflags) then
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a-1,l1) and not(cgsetflags or setflags) then
               begin
               begin
                 if l1>32 then{roozbeh does this ever happen?}
                 if l1>32 then{roozbeh does this ever happen?}
-                  internalerror(200308296);
+                  internalerror(2003082911);
                 shifterop_reset(so);
                 shifterop_reset(so);
                 so.shiftmode:=SM_LSL;
                 so.shiftmode:=SM_LSL;
                 so.shiftimm:=l1;
                 so.shiftimm:=l1;
@@ -4712,7 +4712,7 @@ unit cgcpu;
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a+1,l1) and not(cgsetflags or setflags) then
             else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a+1,l1) and not(cgsetflags or setflags) then
               begin
               begin
                 if l1>32 then{does this ever happen?}
                 if l1>32 then{does this ever happen?}
-                  internalerror(201205181);
+                  internalerror(2012051803);
                 shifterop_reset(so);
                 shifterop_reset(so);
                 so.shiftmode:=SM_LSL;
                 so.shiftmode:=SM_LSL;
                 so.shiftimm:=l1;
                 so.shiftimm:=l1;
@@ -4774,7 +4774,7 @@ unit cgcpu;
            OP_ROL:
            OP_ROL:
               begin
               begin
                 if not(size in [OS_32,OS_S32]) then
                 if not(size in [OS_32,OS_S32]) then
-                   internalerror(2008072801);
+                   internalerror(2008072806);
                 { simulate ROL by ror'ing 32-value }
                 { simulate ROL by ror'ing 32-value }
                 tmpreg:=getintregister(list,OS_32);
                 tmpreg:=getintregister(list,OS_32);
                 list.concat(taicpu.op_reg_const(A_MOV,tmpreg,32));
                 list.concat(taicpu.op_reg_const(A_MOV,tmpreg,32));
@@ -5154,7 +5154,7 @@ unit cgcpu;
                 else if ref.refaddr=addr_tpoff then
                 else if ref.refaddr=addr_tpoff then
                   begin
                   begin
                     if assigned(ref.relsymbol) or (ref.offset<>0) then
                     if assigned(ref.relsymbol) or (ref.offset<>0) then
-                      Internalerror(2019092805);
+                      Internalerror(2019092807);
 
 
                     current_procinfo.aktlocaldata.concat(tai_const.Create_type_sym(aitconst_tpoff,ref.symbol));
                     current_procinfo.aktlocaldata.concat(tai_const.Create_type_sym(aitconst_tpoff,ref.symbol));
                   end
                   end
@@ -5224,7 +5224,7 @@ unit cgcpu;
         if ((op in [A_LDF,A_STF,A_FLDS,A_FLDD,A_FSTS,A_FSTD]) or (op=A_VSTR) or (op=A_VLDR)) and (ref.index<>NR_NO) then
         if ((op in [A_LDF,A_STF,A_FLDS,A_FLDD,A_FSTS,A_FSTD]) or (op=A_VSTR) or (op=A_VLDR)) and (ref.index<>NR_NO) then
           begin
           begin
             if ref.shiftmode<>SM_none then
             if ref.shiftmode<>SM_none then
-              internalerror(200309121);
+              internalerror(2003091202);
             if tmpreg<>NR_NO then
             if tmpreg<>NR_NO then
               begin
               begin
                 if ref.base=tmpreg then
                 if ref.base=tmpreg then
@@ -5238,7 +5238,7 @@ unit cgcpu;
                 else
                 else
                   begin
                   begin
                     if ref.index<>tmpreg then
                     if ref.index<>tmpreg then
-                      internalerror(200403161);
+                      internalerror(2004031602);
                     if ref.signindex<0 then
                     if ref.signindex<0 then
                       list.concat(taicpu.op_reg_reg_reg(A_SUB,tmpreg,ref.base,tmpreg))
                       list.concat(taicpu.op_reg_reg_reg(A_SUB,tmpreg,ref.base,tmpreg))
                     else
                     else
@@ -5377,7 +5377,7 @@ unit cgcpu;
               list.concat(taicpu.op_reg_reg(A_SBC,regdst.reghi,regsrc.reghi));
               list.concat(taicpu.op_reg_reg(A_SBC,regdst.reghi,regsrc.reghi));
             end;
             end;
           else
           else
-            internalerror(2003083101);
+            internalerror(2003083105);
         end;
         end;
       end;
       end;
 
 
@@ -5431,7 +5431,7 @@ unit cgcpu;
               list.concat(taicpu.op_reg_reg(A_SBC,reg.reghi,tmpreg));
               list.concat(taicpu.op_reg_reg(A_SBC,reg.reghi,tmpreg));
             end;
             end;
           else
           else
-            internalerror(2003083101);
+            internalerror(2003083106);
         end;
         end;
       end;
       end;
 
 

+ 1 - 1
compiler/arm/cpuelf.pas

@@ -923,7 +923,7 @@ implementation
           else
           else
             begin
             begin
               writeln(objreloc.ftype);
               writeln(objreloc.ftype);
-              internalerror(200604014);
+              internalerror(2006040107);
             end;
             end;
           end
           end
         else           { not relocsec.Used }
         else           { not relocsec.Used }

+ 1 - 1
compiler/arm/cpupara.pas

@@ -915,7 +915,7 @@ unit cpupara;
               end;
               end;
           end
           end
         else
         else
-          internalerror(200410231);
+          internalerror(2004102306);
 
 
         create_funcretloc_info(p,side);
         create_funcretloc_info(p,side);
       end;
       end;

+ 1 - 1
compiler/arm/hlcgcpu.pas

@@ -106,7 +106,7 @@ implementation
         l : TAsmLabel;
         l : TAsmLabel;
       begin
       begin
         if (procdef.extnumber=$ffff) then
         if (procdef.extnumber=$ffff) then
-          Internalerror(200006139);
+          Internalerror(2000061311);
         if GenerateThumbCode then
         if GenerateThumbCode then
           begin
           begin
             reference_reset_base(href,voidpointertype,NR_R0,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,sizeof(pint),[]);
             reference_reset_base(href,voidpointertype,NR_R0,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,sizeof(pint),[]);

+ 2 - 2
compiler/arm/narmadd.pas

@@ -207,7 +207,7 @@ interface
             end;
             end;
           fpu_soft:
           fpu_soft:
             { this case should be handled already by pass1 }
             { this case should be handled already by pass1 }
-            internalerror(200308252);
+            internalerror(2003082503);
           else if FPUARM_HAS_VFP_DOUBLE in fpu_capabilities[current_settings.fputype] then
           else if FPUARM_HAS_VFP_DOUBLE in fpu_capabilities[current_settings.fputype] then
             begin
             begin
               { force mmreg as location, left right doesn't matter
               { force mmreg as location, left right doesn't matter
@@ -260,7 +260,7 @@ interface
                 slashn :
                 slashn :
                   op:=A_VDIV;
                   op:=A_VDIV;
                 else
                 else
-                  internalerror(2009111401);
+                  internalerror(2009111404);
               end;
               end;
 
 
               current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg_reg(op, location.register,left.location.register,right.location.register), PF_F32));
               current_asmdata.CurrAsmList.concat(setoppostfix(taicpu.op_reg_reg_reg(op, location.register,left.location.register,right.location.register), PF_F32));

+ 7 - 7
compiler/arm/narmcnv.pas

@@ -128,7 +128,7 @@ implementation
                       left:=nil;
                       left:=nil;
                     end;
                     end;
                   else
                   else
-                    internalerror(200610151);
+                    internalerror(2006101504);
                 end;
                 end;
               s64real:
               s64real:
                 case tfloatdef(resultdef).floattype of
                 case tfloatdef(resultdef).floattype of
@@ -141,10 +141,10 @@ implementation
                       left:=nil;
                       left:=nil;
                     end;
                     end;
                   else
                   else
-                    internalerror(200610152);
+                    internalerror(2006101505);
                 end;
                 end;
               else
               else
-                internalerror(200610153);
+                internalerror(2006101506);
             end;
             end;
             left:=nil;
             left:=nil;
             firstpass(result);
             firstpass(result);
@@ -223,7 +223,7 @@ implementation
                           end;
                           end;
                       end;
                       end;
                     else
                     else
-                      internalerror(200410031);
+                      internalerror(2004100307);
                   end;
                   end;
               end;
               end;
             end;
             end;
@@ -248,7 +248,7 @@ implementation
               signed:=left.location.size=OS_S32;
               signed:=left.location.size=OS_S32;
               hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,false);
               hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,false);
               if (left.location.size<>OS_F32) then
               if (left.location.size<>OS_F32) then
-                internalerror(2009112703);
+                internalerror(2009112704);
               if left.location.size<>location.size then
               if left.location.size<>location.size then
                 location.register:=cg.getmmregister(current_asmdata.CurrAsmList,location.size)
                 location.register:=cg.getmmregister(current_asmdata.CurrAsmList,location.size)
               else
               else
@@ -260,7 +260,7 @@ implementation
             end
             end
           else
           else
             { should be handled in pass 1 }
             { should be handled in pass 1 }
-            internalerror(2019050934);
+            internalerror(2019050909);
         end;
         end;
       end;
       end;
 
 
@@ -358,7 +358,7 @@ implementation
                 tbasecgarm(cg).cgsetflags:=false;
                 tbasecgarm(cg).cgsetflags:=false;
               end;
               end;
             else
             else
-              internalerror(200311301);
+              internalerror(2003113002);
          end;
          end;
          { load flags to register }
          { load flags to register }
          location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
          location_reset(location,LOC_REGISTER,def_cgsize(resultdef));

+ 1 - 1
compiler/arm/narminl.pas

@@ -333,7 +333,7 @@ implementation
               cg.maybe_check_for_fpu_exception(current_asmdata.CurrAsmList);
               cg.maybe_check_for_fpu_exception(current_asmdata.CurrAsmList);
             end
             end
           else
           else
-            internalerror(2009111402);
+            internalerror(2009111405);
         end;
         end;
       end;
       end;
 
 

+ 1 - 1
compiler/arm/narmld.pas

@@ -157,7 +157,7 @@ implementation
                       handled:=true;
                       handled:=true;
                     end;
                     end;
                   else
                   else
-                    Internalerror(2019092802);
+                    Internalerror(2019092806);
                 end;
                 end;
               end;
               end;
           end;
           end;

+ 1 - 1
compiler/arm/narmmat.pas

@@ -420,7 +420,7 @@ implementation
                 OS_64:
                 OS_64:
                   cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_XOR,OS_32,tcgint($80000000),location.registerhi);
                   cg.a_op_const_reg(current_asmdata.CurrAsmList,OP_XOR,OS_32,tcgint($80000000),location.registerhi);
               else
               else
-                internalerror(2014033101);
+                internalerror(2014033103);
               end;
               end;
             end
             end
           else if FPUARM_HAS_VFP_DOUBLE in fpu_capabilities[init_settings.fputype] then
           else if FPUARM_HAS_VFP_DOUBLE in fpu_capabilities[init_settings.fputype] then

+ 1 - 1
compiler/arm/raarmgas.pas

@@ -988,7 +988,7 @@ Unit raarmgas;
                        OPR_REFERENCE :
                        OPR_REFERENCE :
                          inc(oper.opr.ref.offset,l);
                          inc(oper.opr.ref.offset,l);
                        else
                        else
-                         internalerror(200309202);
+                         internalerror(2003092021);
                      end;
                      end;
                    end
                    end
                end;
                end;

+ 2 - 2
compiler/arm/rgcpu.pas

@@ -491,7 +491,7 @@ unit rgcpu;
             tmpref.index:=hreg;
             tmpref.index:=hreg;
 
 
             if spilltemp.index<>NR_NO then
             if spilltemp.index<>NR_NO then
-              internalerror(200401263);
+              internalerror(2004012601);
 
 
             helplist.concat(spilling_create_load(tmpref,tempreg));
             helplist.concat(spilling_create_load(tmpref,tempreg));
             if getregtype(tempreg)=R_INTREGISTER then
             if getregtype(tempreg)=R_INTREGISTER then
@@ -545,7 +545,7 @@ unit rgcpu;
             helplist.concat(taicpu.op_reg_ref(A_LDR,hreg,tmpref));
             helplist.concat(taicpu.op_reg_ref(A_LDR,hreg,tmpref));
 
 
             if spilltemp.index<>NR_NO then
             if spilltemp.index<>NR_NO then
-              internalerror(200401263);
+              internalerror(2004012602);
 
 
             reference_reset_base(tmpref,current_procinfo.framepointer,0,ctempposinvalid,sizeof(pint),[]);
             reference_reset_base(tmpref,current_procinfo.framepointer,0,ctempposinvalid,sizeof(pint),[]);
             tmpref.index:=hreg;
             tmpref.index:=hreg;

+ 3 - 3
compiler/assemble.pas

@@ -1140,7 +1140,7 @@ Implementation
 	      else if sizeof(tai_realconst(hp).value.s80val) = sizeof(single) then
 	      else if sizeof(tai_realconst(hp).value.s80val) = sizeof(single) then
 	        eextended:=float32_to_floatx80(float32(single(tai_realconst(hp).value.s80val)))
 	        eextended:=float32_to_floatx80(float32(single(tai_realconst(hp).value.s80val)))
 	      else
 	      else
-	        internalerror(2017091901);
+	        internalerror(2017091902);
               pdata:=@eextended;
               pdata:=@eextended;
             end;
             end;
 {$pop}
 {$pop}
@@ -2062,7 +2062,7 @@ Implementation
 		       else if sizeof(tai_realconst(hp).value.s80val) = sizeof(single) then
 		       else if sizeof(tai_realconst(hp).value.s80val) = sizeof(single) then
 			 eextended:=float32_to_floatx80(float32(single(tai_realconst(hp).value.s80val)))
 			 eextended:=float32_to_floatx80(float32(single(tai_realconst(hp).value.s80val)))
 		       else
 		       else
-			 internalerror(2017091901);
+			 internalerror(2017091903);
                        pdata:=@eextended;
                        pdata:=@eextended;
                      end;
                      end;
            {$pop}
            {$pop}
@@ -2101,7 +2101,7 @@ Implementation
                      else if Tai_const(hp).consttype in [aitconst_tlsgd,aitconst_tlsdesc] then
                      else if Tai_const(hp).consttype in [aitconst_tlsgd,aitconst_tlsdesc] then
                        begin
                        begin
                          if objsymend.objsection<>ObjData.CurrObjSec then
                          if objsymend.objsection<>ObjData.CurrObjSec then
-                           Internalerror(2019092802);
+                           Internalerror(2019092803);
                          Tai_const(hp).value:=ObjData.CurrObjSec.Size-objsymend.address+Tai_const(hp).symofs;
                          Tai_const(hp).value:=ObjData.CurrObjSec.Size-objsymend.address+Tai_const(hp).symofs;
                        end
                        end
                      else if objsymend.objsection<>objsym.objsection then
                      else if objsymend.objsection<>objsym.objsection then

+ 2 - 2
compiler/avr/aasmcpu.pas

@@ -355,7 +355,7 @@ implementation
             else
             else
               result:=taicpu.op_reg_ref(A_LD,r,ref);
               result:=taicpu.op_reg_ref(A_LD,r,ref);
           else
           else
-            internalerror(200401041);
+            internalerror(2004010413);
         end;
         end;
       end;
       end;
 
 
@@ -374,7 +374,7 @@ implementation
             else
             else
               result:=taicpu.op_ref_reg(A_ST,ref,r);
               result:=taicpu.op_ref_reg(A_ST,ref,r);
           else
           else
-            internalerror(200401041);
+            internalerror(2004010414);
         end;
         end;
       end;
       end;
 
 

+ 1 - 1
compiler/avr/agavrgas.pas

@@ -93,7 +93,7 @@ unit agavrgas;
               //   internalerror(200308293);
               //   internalerror(200308293);
   {$endif extdebug}
   {$endif extdebug}
               if index<>NR_NO then
               if index<>NR_NO then
-                internalerror(2011021701)
+                internalerror(2011021707)
               else if base<>NR_NO then
               else if base<>NR_NO then
                 begin
                 begin
                   if addressmode=AM_PREDRECEMENT then
                   if addressmode=AM_PREDRECEMENT then

+ 10 - 10
compiler/avr/cgcpu.pas

@@ -214,7 +214,7 @@ unit cgcpu;
                  list.concat(taicpu.op_reg(A_PUSH,r));
                  list.concat(taicpu.op_reg(A_PUSH,r));
                end;
                end;
              else
              else
-               internalerror(2002071004);
+               internalerror(2002071007);
           end;
           end;
         end;
         end;
 
 
@@ -224,7 +224,7 @@ unit cgcpu;
 
 
       begin
       begin
         if not(tcgsize2size[cgpara.Size] in [1..4]) then
         if not(tcgsize2size[cgpara.Size] in [1..4]) then
-          internalerror(2014011101);
+          internalerror(2014011106);
 
 
         hp:=cgpara.location;
         hp:=cgpara.location;
 
 
@@ -268,7 +268,7 @@ unit cgcpu;
         tmpreg: TRegister;
         tmpreg: TRegister;
       begin
       begin
         if not(tcgsize2size[paraloc.Size] in [1..4]) then
         if not(tcgsize2size[paraloc.Size] in [1..4]) then
-          internalerror(2014011101);
+          internalerror(2014011107);
 
 
         hp:=paraloc.location;
         hp:=paraloc.location;
 
 
@@ -302,7 +302,7 @@ unit cgcpu;
                   hp:=hp^.Next;
                   hp:=hp^.Next;
                 end;
                 end;
               else
               else
-                internalerror(2002071004);
+                internalerror(2002071008);
             end;
             end;
           end;
           end;
       end;
       end;
@@ -955,7 +955,7 @@ unit cgcpu;
                              list.concat(taicpu.op_reg(A_ROL,reg))
                              list.concat(taicpu.op_reg(A_ROL,reg))
                            end;
                            end;
                          else
                          else
-                           internalerror(2011030901);
+                           internalerror(2011030903);
                        end;
                        end;
                        if size in [OS_S16,OS_16,OS_S32,OS_32,OS_S64,OS_64] then
                        if size in [OS_S16,OS_16,OS_S32,OS_32,OS_S64,OS_64] then
                          begin
                          begin
@@ -971,7 +971,7 @@ unit cgcpu;
                                  OP_SAR:
                                  OP_SAR:
                                    list.concat(taicpu.op_reg(A_ROR,GetOffsetReg64(reg,reghi,tcgsize2size[size]-i)));
                                    list.concat(taicpu.op_reg(A_ROR,GetOffsetReg64(reg,reghi,tcgsize2size[size]-i)));
                                  else
                                  else
-                                   internalerror(2011030902);
+                                   internalerror(2011030904);
                                end;
                                end;
                            end;
                            end;
                          end;
                          end;
@@ -1098,7 +1098,7 @@ unit cgcpu;
         Result:=ref;
         Result:=ref;
 
 
          if ref.addressmode<>AM_UNCHANGED then
          if ref.addressmode<>AM_UNCHANGED then
-           internalerror(2011021701);
+           internalerror(2011021705);
 
 
         { Be sure to have a base register }
         { Be sure to have a base register }
         if (ref.base=NR_NO) then
         if (ref.base=NR_NO) then
@@ -1248,7 +1248,7 @@ unit cgcpu;
            QuickRef:=true;
            QuickRef:=true;
 
 
          if (tcgsize2size[fromsize]>32) or (tcgsize2size[tosize]>32) or (fromsize=OS_NO) or (tosize=OS_NO) then
          if (tcgsize2size[fromsize]>32) or (tcgsize2size[tosize]>32) or (fromsize=OS_NO) or (tosize=OS_NO) then
-           internalerror(2011021307);
+           internalerror(2011021303);
 
 
          conv_done:=false;
          conv_done:=false;
          if tosize<>fromsize then
          if tosize<>fromsize then
@@ -1469,7 +1469,7 @@ unit cgcpu;
            QuickRef:=true;
            QuickRef:=true;
 
 
          if (tcgsize2size[fromsize]>32) or (tcgsize2size[tosize]>32) or (fromsize=OS_NO) or (tosize=OS_NO) then
          if (tcgsize2size[fromsize]>32) or (tcgsize2size[tosize]>32) or (fromsize=OS_NO) or (tosize=OS_NO) then
-           internalerror(2011021307);
+           internalerror(2011021304);
 
 
          conv_done:=false;
          conv_done:=false;
          if tosize<>fromsize then
          if tosize<>fromsize then
@@ -2362,7 +2362,7 @@ unit cgcpu;
         tmpref : treference;
         tmpref : treference;
       begin
       begin
          if ref.addressmode<>AM_UNCHANGED then
          if ref.addressmode<>AM_UNCHANGED then
-           internalerror(2011021701);
+           internalerror(2011021706);
 
 
         if assigned(ref.symbol) or (ref.offset<>0) then
         if assigned(ref.symbol) or (ref.offset<>0) then
           begin
           begin

+ 1 - 1
compiler/avr/cpupara.pas

@@ -555,7 +555,7 @@ unit cpupara;
               end;
               end;
           end
           end
         else
         else
-          internalerror(200410231);
+          internalerror(2004102305);
       end;
       end;
 
 
 begin
 begin

+ 1 - 1
compiler/avr/navrmat.pas

@@ -166,7 +166,7 @@ implementation
           shln: op:=OP_SHL;
           shln: op:=OP_SHL;
           shrn: op:=OP_SHR;
           shrn: op:=OP_SHR;
           else
           else
-            internalerror(2013120102);
+            internalerror(2013120109);
         end;
         end;
         opsize:=left.location.size;
         opsize:=left.location.size;
         opdef:=left.resultdef;
         opdef:=left.resultdef;

+ 2 - 2
compiler/avr/raavrgas.pas

@@ -415,7 +415,7 @@ Unit raavrgas;
                     OPR_REFERENCE :
                     OPR_REFERENCE :
                       inc(oper.opr.ref.offset,l);
                       inc(oper.opr.ref.offset,l);
                     else
                     else
-                      internalerror(200309202);
+                      internalerror(2003092012);
                   end;
                   end;
                   Consume(AS_RPAREN);
                   Consume(AS_RPAREN);
                 end
                 end
@@ -499,7 +499,7 @@ Unit raavrgas;
                        OPR_REFERENCE :
                        OPR_REFERENCE :
                          inc(oper.opr.ref.offset,l);
                          inc(oper.opr.ref.offset,l);
                        else
                        else
-                         internalerror(200309202);
+                         internalerror(2003092013);
                      end;
                      end;
                    end
                    end
                end;
                end;

+ 1 - 1
compiler/cg64f32.pas

@@ -705,7 +705,7 @@ unit cg64f32;
           LOC_CONSTANT :
           LOC_CONSTANT :
             cg.a_load_const_reg(list,OS_32,longint(hi(l.value64)),reg);
             cg.a_load_const_reg(list,OS_32,longint(hi(l.value64)),reg);
           else
           else
-            internalerror(200203244);
+            internalerror(2002032411);
         end;
         end;
       end;
       end;
 
 

+ 10 - 10
compiler/cgobj.pas

@@ -1427,7 +1427,7 @@ implementation
                        OS_M8..OS_M512:
                        OS_M8..OS_M512:
                          a_loadmm_reg_reg(list,paraloc.size,paraloc.size,paraloc.register,reg,nil);
                          a_loadmm_reg_reg(list,paraloc.size,paraloc.size,paraloc.register,reg,nil);
                        else
                        else
-                         internalerror(2010053102);
+                         internalerror(2010053106);
                      end;
                      end;
                    end;
                    end;
                  else
                  else
@@ -1464,7 +1464,7 @@ implementation
                end;
                end;
              end;
              end;
            else
            else
-             internalerror(2002081302);
+             internalerror(2002081303);
          end;
          end;
       end;
       end;
 
 
@@ -2086,7 +2086,7 @@ implementation
           LOC_REFERENCE, LOC_CREFERENCE:
           LOC_REFERENCE, LOC_CREFERENCE:
             a_op_reg_ref(list,op,loc.size,reg,loc.reference);
             a_op_reg_ref(list,op,loc.size,reg,loc.reference);
           else
           else
-            internalerror(200109061);
+            internalerror(2001090602);
         end;
         end;
       end;
       end;
 
 
@@ -2123,7 +2123,7 @@ implementation
               a_op_reg_ref(list,op,loc.size,tmpreg,loc.reference);
               a_op_reg_ref(list,op,loc.size,tmpreg,loc.reference);
             end;
             end;
           else
           else
-            internalerror(200109061);
+            internalerror(2001090603);
         end;
         end;
       end;
       end;
 
 
@@ -2265,7 +2265,7 @@ implementation
         tmpref: treference;
         tmpref: treference;
       begin
       begin
         if not (Op in [OP_NOT,OP_NEG]) then
         if not (Op in [OP_NOT,OP_NEG]) then
-          internalerror(2020050701);
+          internalerror(2020050710);
         if assigned(ref.symbol) then
         if assigned(ref.symbol) then
           begin
           begin
             tmpreg:=getaddressregister(list);
             tmpreg:=getaddressregister(list);
@@ -2325,7 +2325,7 @@ implementation
           LOC_REFERENCE,LOC_CREFERENCE:
           LOC_REFERENCE,LOC_CREFERENCE:
             a_cmp_const_ref_label(list,size,cmp_op,a,loc.reference,l);
             a_cmp_const_ref_label(list,size,cmp_op,a,loc.reference,l);
           else
           else
-            internalerror(200109061);
+            internalerror(2001090604);
         end;
         end;
       end;
       end;
 
 
@@ -2388,7 +2388,7 @@ implementation
               a_cmp_ref_reg_label(list,size,cmp_op,ref,tmpreg,l);
               a_cmp_ref_reg_label(list,size,cmp_op,ref,tmpreg,l);
             end;
             end;
           else
           else
-            internalerror(200109061);
+            internalerror(2001090605);
         end;
         end;
       end;
       end;
 
 
@@ -2522,7 +2522,7 @@ implementation
           LOC_REFERENCE,LOC_CREFERENCE:
           LOC_REFERENCE,LOC_CREFERENCE:
             a_loadmm_ref_cgpara(list,loc.size,loc.reference,cgpara,shuffle);
             a_loadmm_ref_cgpara(list,loc.size,loc.reference,cgpara,shuffle);
           else
           else
-            internalerror(200310123);
+            internalerror(2003101204);
         end;
         end;
       end;
       end;
 
 
@@ -2616,7 +2616,7 @@ implementation
           LOC_CREFERENCE,LOC_REFERENCE:
           LOC_CREFERENCE,LOC_REFERENCE:
             a_opmm_ref_reg_reg(list,op,size,loc.reference,src,dst,shuffle);
             a_opmm_ref_reg_reg(list,op,size,loc.reference,src,dst,shuffle);
           else
           else
-            internalerror(200312232);
+            internalerror(2003122304);
         end;
         end;
       end;
       end;
 
 
@@ -3163,7 +3163,7 @@ implementation
         tempreg: tregister64;
         tempreg: tregister64;
       begin
       begin
         if not (op in [OP_NOT,OP_NEG]) then
         if not (op in [OP_NOT,OP_NEG]) then
-          internalerror(2020050706);
+          internalerror(2020050713);
         tempreg.reghi:=cg.getintregister(list,OS_32);
         tempreg.reghi:=cg.getintregister(list,OS_32);
         tempreg.reglo:=cg.getintregister(list,OS_32);
         tempreg.reglo:=cg.getintregister(list,OS_32);
         a_load64_ref_reg(list,ref,tempreg);
         a_load64_ref_reg(list,ref,tempreg);

+ 2 - 2
compiler/dbgdwarf.pas

@@ -1309,7 +1309,7 @@ implementation
             if data[i].VType<>vtInteger then
             if data[i].VType<>vtInteger then
               internalerror(200601261);
               internalerror(200601261);
             if data[i+1].VType<>vtInteger then
             if data[i+1].VType<>vtInteger then
-              internalerror(200601261);
+              internalerror(2006012602);
             append_attribute(tdwarf_attribute(data[i].VInteger),tdwarf_form(data[i+1].VInteger),data[i+2]);
             append_attribute(tdwarf_attribute(data[i].VInteger),tdwarf_form(data[i+1].VInteger),data[i+2]);
             inc(i,3);
             inc(i,3);
           end;
           end;
@@ -2552,7 +2552,7 @@ implementation
                 currdef:=tarraydef(currdef).elementdef;
                 currdef:=tarraydef(currdef).elementdef;
               end;
               end;
             else
             else
-              internalerror(2009031401);
+              internalerror(2009031403);
           end;
           end;
           symlist:=symlist^.next;
           symlist:=symlist^.next;
         until not assigned(symlist);
         until not assigned(symlist);

+ 1 - 1
compiler/dbgstabs.pas

@@ -1561,7 +1561,7 @@ implementation
                   ss:=sym_stabstr_evaluate(sym,'"${name}:$1",'+base_stabs_str(paravarsymref_stab,'0','${line}','$2'),[c+st,getoffsetstr(sym.localloc.reference)])
                   ss:=sym_stabstr_evaluate(sym,'"${name}:$1",'+base_stabs_str(paravarsymref_stab,'0','${line}','$2'),[c+st,getoffsetstr(sym.localloc.reference)])
                 end;
                 end;
               else
               else
-                internalerror(2003091814);
+                internalerror(2003091805);
             end;
             end;
           end;
           end;
         write_sym_stabstr(list,sym,ss);
         write_sym_stabstr(list,sym,ss);

+ 3 - 3
compiler/fpcp.pas

@@ -326,7 +326,7 @@ implementation
       if pcpfile.readentry<>ibpackagefiles then
       if pcpfile.readentry<>ibpackagefiles then
         begin
         begin
           message(package_f_pcp_read_error);
           message(package_f_pcp_read_error);
-          internalerror(424242);
+          internalerror(2020100818);
         end;
         end;
       pplfilename:=pcpfile.getstring;
       pplfilename:=pcpfile.getstring;
 
 
@@ -342,13 +342,13 @@ implementation
       if pcpfile.readentry<>ibstartcontained then
       if pcpfile.readentry<>ibstartcontained then
         begin
         begin
           message(package_f_pcp_read_error);
           message(package_f_pcp_read_error);
-          internalerror(424242);
+          internalerror(2020100819);
         end;
         end;
       cnt:=pcpfile.getlongint;
       cnt:=pcpfile.getlongint;
       if pcpfile.readentry<>ibendcontained then
       if pcpfile.readentry<>ibendcontained then
         begin
         begin
           message(package_f_pcp_read_error);
           message(package_f_pcp_read_error);
-          internalerror(424242);
+          internalerror(2020100820);
         end;
         end;
       for i:=0 to cnt-1 do
       for i:=0 to cnt-1 do
         begin
         begin

+ 1 - 1
compiler/hlcg2ll.pas

@@ -837,7 +837,7 @@ implementation
     begin
     begin
 {$ifdef extdebug}
 {$ifdef extdebug}
       if def_cgsize(size)<>loc.size then
       if def_cgsize(size)<>loc.size then
-        internalerror(2010112101);
+        internalerror(2010112103);
 {$endif}
 {$endif}
       case loc.loc of
       case loc.loc of
         LOC_SUBSETREG,LOC_CSUBSETREG,
         LOC_SUBSETREG,LOC_CSUBSETREG,

+ 12 - 12
compiler/hlcgobj.pas

@@ -999,7 +999,7 @@ implementation
                    begin
                    begin
                      { should be the last part }
                      { should be the last part }
                      if assigned(location^.next) then
                      if assigned(location^.next) then
-                       internalerror(2010052907);
+                       internalerror(2010052902);
                      { load the value piecewise to get it into the register }
                      { load the value piecewise to get it into the register }
                      orgsizeleft:=sizeleft;
                      orgsizeleft:=sizeleft;
                      reghasvalue:=false;
                      reghasvalue:=false;
@@ -1083,7 +1083,7 @@ implementation
                    OS_M8..OS_M128:
                    OS_M8..OS_M128:
                      a_loadmm_ref_reg(list,location^.def,location^.def,tmpref,location^.register,nil);
                      a_loadmm_ref_reg(list,location^.def,location^.def,tmpref,location^.register,nil);
                    else
                    else
-                     internalerror(2010053101);
+                     internalerror(2010053103);
                  end;
                  end;
               end
               end
             else
             else
@@ -1644,7 +1644,7 @@ implementation
       if sref.bitlen>AIntBits then
       if sref.bitlen>AIntBits then
         begin
         begin
           if ((sref.bitlen mod AIntBits)<>0) then
           if ((sref.bitlen mod AIntBits)<>0) then
-            internalerror(2019052901);
+            internalerror(2019052902);
           tmpsref:=sref;
           tmpsref:=sref;
           tmpsref.bitlen:=AIntBits;
           tmpsref.bitlen:=AIntBits;
           if target_info.endian=endian_big then
           if target_info.endian=endian_big then
@@ -2762,7 +2762,7 @@ implementation
         LOC_REFERENCE,LOC_CREFERENCE:
         LOC_REFERENCE,LOC_CREFERENCE:
           a_loadmm_reg_ref(list,fromsize,tosize,reg,loc.reference,shuffle);
           a_loadmm_reg_ref(list,fromsize,tosize,reg,loc.reference,shuffle);
         else
         else
-          internalerror(2010120415);
+          internalerror(2010120417);
       end;
       end;
     end;
     end;
 
 
@@ -3069,7 +3069,7 @@ implementation
             a_load_reg_subsetref(list,size,size,tmpreg,loc.sref);
             a_load_reg_subsetref(list,size,size,tmpreg,loc.sref);
           end;
           end;
         else
         else
-          internalerror(2010120429);
+          internalerror(2010120418);
       end;
       end;
     end;
     end;
 
 
@@ -3124,7 +3124,7 @@ implementation
   procedure thlcgobj.a_op_reg(list: TAsmList; Op: TOpCG; size: tdef; reg: TRegister);
   procedure thlcgobj.a_op_reg(list: TAsmList; Op: TOpCG; size: tdef; reg: TRegister);
     begin
     begin
       if not (Op in [OP_NOT,OP_NEG]) then
       if not (Op in [OP_NOT,OP_NEG]) then
-        internalerror(2020050701);
+        internalerror(2020050711);
       a_op_reg_reg(list,op,size,reg,reg);
       a_op_reg_reg(list,op,size,reg,reg);
     end;
     end;
 
 
@@ -3133,7 +3133,7 @@ implementation
       tmpreg: TRegister;
       tmpreg: TRegister;
     begin
     begin
       if not (Op in [OP_NOT,OP_NEG]) then
       if not (Op in [OP_NOT,OP_NEG]) then
-        internalerror(2020050701);
+        internalerror(2020050712);
       tmpreg:=getintregister(list,size);
       tmpreg:=getintregister(list,size);
       a_load_ref_reg(list,size,size,ref,tmpreg);
       a_load_ref_reg(list,size,size,ref,tmpreg);
       a_op_reg_reg(list,op,size,tmpreg,tmpreg);
       a_op_reg_reg(list,op,size,tmpreg,tmpreg);
@@ -4252,7 +4252,7 @@ implementation
           begin
           begin
             { vectors can't be represented yet using tdef }
             { vectors can't be represented yet using tdef }
             if size.typ<>floatdef then
             if size.typ<>floatdef then
-              internalerror(2012062301);
+              internalerror(2012062302);
             tg.gethltemp(list,size,size.size,tt_normal,r);
             tg.gethltemp(list,size,size.size,tt_normal,r);
             a_loadmm_reg_ref(list,size,size,l.register,r,mms_movescalar);
             a_loadmm_reg_ref(list,size,size,l.register,r,mms_movescalar);
             location_reset_ref(l,LOC_REFERENCE,l.size,size.alignment,[]);
             location_reset_ref(l,LOC_REFERENCE,l.size,size.alignment,[]);
@@ -5036,7 +5036,7 @@ implementation
                            begin
                            begin
                              hsym:=tparavarsym(get_high_value_sym(tparavarsym(p)));
                              hsym:=tparavarsym(get_high_value_sym(tparavarsym(p)));
                              if not assigned(hsym) then
                              if not assigned(hsym) then
-                               internalerror(201003032);
+                               internalerror(2010030303);
                              highloc:=hsym.initialloc
                              highloc:=hsym.initialloc
                            end
                            end
                          else
                          else
@@ -5067,7 +5067,7 @@ implementation
                              begin
                              begin
                                hsym:=tparavarsym(get_high_value_sym(tparavarsym(p)));
                                hsym:=tparavarsym(get_high_value_sym(tparavarsym(p)));
                                if not assigned(hsym) then
                                if not assigned(hsym) then
-                                 internalerror(201003032);
+                                 internalerror(2010030304);
                                highloc:=hsym.initialloc
                                highloc:=hsym.initialloc
                              end
                              end
                            else
                            else
@@ -5232,7 +5232,7 @@ implementation
                 a_loadfpu_reg_cgpara(list,size,tmploc.register,cgpara);
                 a_loadfpu_reg_cgpara(list,size,tmploc.register,cgpara);
               end;
               end;
             else
             else
-              internalerror(200204249);
+              internalerror(2002042402);
           end;
           end;
         LOC_FPUREGISTER,
         LOC_FPUREGISTER,
         LOC_CFPUREGISTER:
         LOC_CFPUREGISTER:
@@ -5381,7 +5381,7 @@ implementation
                       a_load_ref_ref(list,para.def,para.def,href,destloc.reference);
                       a_load_ref_ref(list,para.def,para.def,href,destloc.reference);
                     end;
                     end;
                   else
                   else
-                    internalerror(2013102301);
+                    internalerror(2013102305);
                 end;
                 end;
               end;
               end;
           end;
           end;

+ 6 - 6
compiler/i386/cgcpu.pas

@@ -636,7 +636,7 @@ unit cgcpu;
               op2:=A_AND;
               op2:=A_AND;
             end;
             end;
           else
           else
-            internalerror(200203241);
+            internalerror(2002032408);
         end;
         end;
       end;
       end;
 
 
@@ -857,7 +857,7 @@ unit cgcpu;
                     list.Concat(taicpu.op_reg_reg(A_SAR,S_L,NR_CL,regdst.reghi));
                     list.Concat(taicpu.op_reg_reg(A_SAR,S_L,NR_CL,regdst.reghi));
                   end;
                   end;
                 else
                 else
-                  internalerror(2017041801);
+                  internalerror(2017041802);
               end;
               end;
               cg.a_label(list,l2);
               cg.a_label(list,l2);
 
 
@@ -980,7 +980,7 @@ unit cgcpu;
                           list.concat(taicpu.op_const_reg(A_SHL,S_L,value,reg.reglo));
                           list.concat(taicpu.op_const_reg(A_SHL,S_L,value,reg.reglo));
                         end;
                         end;
                       else
                       else
-                        internalerror(2017041201);
+                        internalerror(2017041202);
                     end;
                     end;
                 end;
                 end;
             end;
             end;
@@ -1049,7 +1049,7 @@ unit cgcpu;
                           cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                           cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                         end;
                         end;
                       else
                       else
-                        internalerror(2019050901);
+                        internalerror(2019050903);
                     end
                     end
                   else if value>31 then
                   else if value>31 then
                     case op of
                     case op of
@@ -1086,7 +1086,7 @@ unit cgcpu;
                           cg.a_load_const_ref(list,OS_32,0,tempref);
                           cg.a_load_const_ref(list,OS_32,0,tempref);
                         end;
                         end;
                       else
                       else
-                        internalerror(2017041801);
+                        internalerror(2017041803);
                     end
                     end
                   else
                   else
                     case op of
                     case op of
@@ -1130,7 +1130,7 @@ unit cgcpu;
                             end;
                             end;
                         end;
                         end;
                       else
                       else
-                        internalerror(2017041201);
+                        internalerror(2017041203);
                     end;
                     end;
                 end;
                 end;
             end;
             end;

+ 1 - 1
compiler/i386/cpuelf.pas

@@ -473,7 +473,7 @@ implementation
               else
               else
                 begin
                 begin
                   writeln(reltyp);
                   writeln(reltyp);
-                  internalerror(200604014);
+                  internalerror(2006040108);
                 end;
                 end;
             end
             end
           else           { not relocsec.Used }
           else           { not relocsec.Used }

+ 2 - 2
compiler/i386/cpupara.pas

@@ -522,7 +522,7 @@ unit cpupara;
             else
             else
               begin
               begin
                 if paralen=0 then
                 if paralen=0 then
-                  internalerror(200501163);
+                  internalerror(2005011606);
                 firstparaloc:=true;
                 firstparaloc:=true;
                 while (paralen>0) do
                 while (paralen>0) do
                   begin
                   begin
@@ -688,7 +688,7 @@ unit cpupara;
                           else
                           else
                             begin
                             begin
                               if paralen=0 then
                               if paralen=0 then
-                                internalerror(200501163);
+                                internalerror(2005011607);
                               firstparaloc:=true;
                               firstparaloc:=true;
                               while (paralen>0) do
                               while (paralen>0) do
                                 begin
                                 begin

+ 2 - 2
compiler/i386/hlcgcpu.pas

@@ -352,7 +352,7 @@ implementation
         href : treference;
         href : treference;
       begin
       begin
         if (procdef.extnumber=$ffff) then
         if (procdef.extnumber=$ffff) then
-          Internalerror(200006139);
+          Internalerror(2000061312);
         { call/jmp  vmtoffs(%reg) ; method offs }
         { call/jmp  vmtoffs(%reg) ; method offs }
         reference_reset_base(href,voidpointertype,reg,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,4,[]);
         reference_reset_base(href,voidpointertype,reg,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,4,[]);
         list.concat(taicpu.op_ref(op,S_L,href));
         list.concat(taicpu.op_ref(op,S_L,href));
@@ -364,7 +364,7 @@ implementation
         href : treference;
         href : treference;
       begin
       begin
         if (procdef.extnumber=$ffff) then
         if (procdef.extnumber=$ffff) then
-          Internalerror(200006139);
+          Internalerror(2000061313);
         { mov vmtoffs(%eax),%eax ; method offs }
         { mov vmtoffs(%eax),%eax ; method offs }
         reference_reset_base(href,voidpointertype,NR_EAX,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,4,[]);
         reference_reset_base(href,voidpointertype,NR_EAX,tobjectdef(procdef.struct).vmtmethodoffset(procdef.extnumber),ctempposinvalid,4,[]);
         cg.a_load_ref_reg(list,OS_ADDR,OS_ADDR,href,NR_EAX);
         cg.a_load_ref_reg(list,OS_ADDR,OS_ADDR,href,NR_EAX);

+ 3 - 3
compiler/i386/n386add.pas

@@ -141,7 +141,7 @@ interface
           else
           else
             begin
             begin
               { everything should be handled in pass_1 (JM) }
               { everything should be handled in pass_1 (JM) }
-              internalerror(200109051);
+              internalerror(2001090505);
             end;
             end;
         end;
         end;
 
 
@@ -409,7 +409,7 @@ interface
                 end;
                 end;
             end;
             end;
         else
         else
-          internalerror(200203282);
+          internalerror(2002032803);
         end;
         end;
 
 
       end;
       end;
@@ -622,7 +622,7 @@ interface
       else if (hreg2<>NR_NO) then
       else if (hreg2<>NR_NO) then
         emit_reg_reg(A_ADD,S_L,hreg2,NR_EDX)
         emit_reg_reg(A_ADD,S_L,hreg2,NR_EDX)
       else
       else
-        InternalError(2014011604);
+        InternalError(2014011601);
 
 
       { Result is now in EDX:EAX. Copy it to virtual registers. }
       { Result is now in EDX:EAX. Copy it to virtual registers. }
       set_mul_result_location;
       set_mul_result_location;

+ 1 - 1
compiler/i386/n386flw.pas

@@ -209,7 +209,7 @@ function ti386tryfinallynode.pass_1: tnode;
           begin
           begin
             selfsym:=tparavarsym(current_procinfo.procdef.parast.Find('self'));
             selfsym:=tparavarsym(current_procinfo.procdef.parast.Find('self'));
             if (selfsym=nil) or (selfsym.typ<>paravarsym) then
             if (selfsym=nil) or (selfsym.typ<>paravarsym) then
-              InternalError(2011123101);
+              InternalError(2011123102);
             selfsym.varregable:=vr_none;
             selfsym.varregable:=vr_none;
           end;
           end;
       end;
       end;

+ 1 - 1
compiler/i386/n386mat.pas

@@ -71,7 +71,7 @@ implementation
       begin
       begin
         if is_64bitint(resultdef) then
         if is_64bitint(resultdef) then
           { should be handled in pass_1 (JM) }
           { should be handled in pass_1 (JM) }
-          internalerror(200109052);
+          internalerror(2001090507);
 
 
         if (nodetype=divn) and (right.nodetype=ordconstn) and
         if (nodetype=divn) and (right.nodetype=ordconstn) and
           is_signed(left.resultdef) and
           is_signed(left.resultdef) and

+ 45 - 45
compiler/i8086/cgcpu.pas

@@ -261,7 +261,7 @@ unit cgcpu;
                         OP_OR,OP_XOR:
                         OP_OR,OP_XOR:
                           {do nothing};
                           {do nothing};
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100704);
                       end;
                       end;
                     end
                     end
                   else if aint(a and $FFFF) = aint($FFFF) then
                   else if aint(a and $FFFF) = aint($FFFF) then
@@ -274,7 +274,7 @@ unit cgcpu;
                         OP_XOR:
                         OP_XOR:
                           list.concat(taicpu.op_reg(A_NOT,S_W,reg));
                           list.concat(taicpu.op_reg(A_NOT,S_W,reg));
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100705);
                       end;
                       end;
                     end
                     end
                   else
                   else
@@ -289,7 +289,7 @@ unit cgcpu;
                         OP_OR,OP_XOR:
                         OP_OR,OP_XOR:
                           {do nothing};
                           {do nothing};
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100706);
                       end;
                       end;
                     end
                     end
                   else if aint(a shr 16) = aint($FFFF) then
                   else if aint(a shr 16) = aint($FFFF) then
@@ -302,7 +302,7 @@ unit cgcpu;
                         OP_XOR:
                         OP_XOR:
                           list.concat(taicpu.op_reg(A_NOT,S_W,GetNextReg(reg)));
                           list.concat(taicpu.op_reg(A_NOT,S_W,GetNextReg(reg)));
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100707);
                       end;
                       end;
                     end
                     end
                   else
                   else
@@ -450,7 +450,7 @@ unit cgcpu;
                                 list.concat(taicpu.op_reg_reg(A_OR,S_W,tmpreg,GetNextReg(reg)));
                                 list.concat(taicpu.op_reg_reg(A_OR,S_W,tmpreg,GetNextReg(reg)));
                               end;
                               end;
                             else
                             else
-                              internalerror(2017040301);
+                              internalerror(2017040302);
                           end;
                           end;
 
 
                           ungetcpuregister(list,NR_CX);
                           ungetcpuregister(list,NR_CX);
@@ -522,7 +522,7 @@ unit cgcpu;
                                     cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                                     cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                                   end;
                                   end;
                                 else
                                 else
-                                  internalerror(2013030903);
+                                  internalerror(2013030907);
                               end;
                               end;
                             end;
                             end;
                         end;
                         end;
@@ -739,7 +739,7 @@ unit cgcpu;
                 else
                 else
                   { OP_MUL should be handled specifically in the code        }
                   { OP_MUL should be handled specifically in the code        }
                   { generator because of the silly register usage restraints }
                   { generator because of the silly register usage restraints }
-                  internalerror(200109225);
+                  internalerror(2001092208);
               end
               end
             else
             else
               inherited a_op_const_reg(list, Op, size, a, reg);
               inherited a_op_const_reg(list, Op, size, a, reg);
@@ -801,7 +801,7 @@ unit cgcpu;
                         OP_OR,OP_XOR:
                         OP_OR,OP_XOR:
                           {do nothing};
                           {do nothing};
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100708);
                       end;
                       end;
                     end
                     end
                   else if aint(a and $FFFF) = aint($FFFF) then
                   else if aint(a and $FFFF) = aint($FFFF) then
@@ -814,7 +814,7 @@ unit cgcpu;
                         OP_XOR:
                         OP_XOR:
                           list.concat(taicpu.op_ref(A_NOT,S_W,tmpref));
                           list.concat(taicpu.op_ref(A_NOT,S_W,tmpref));
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100709);
                       end;
                       end;
                     end
                     end
                   else
                   else
@@ -830,7 +830,7 @@ unit cgcpu;
                         OP_OR,OP_XOR:
                         OP_OR,OP_XOR:
                           {do nothing};
                           {do nothing};
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100710);
                       end;
                       end;
                     end
                     end
                   else if aint(a shr 16) = aint($FFFF) then
                   else if aint(a shr 16) = aint($FFFF) then
@@ -843,7 +843,7 @@ unit cgcpu;
                         OP_XOR:
                         OP_XOR:
                           list.concat(taicpu.op_ref(A_NOT,S_W,tmpref));
                           list.concat(taicpu.op_ref(A_NOT,S_W,tmpref));
                         else
                         else
-                          InternalError(2013100701);
+                          InternalError(2013100711);
                       end;
                       end;
                     end
                     end
                   else
                   else
@@ -991,7 +991,7 @@ unit cgcpu;
                         cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                         cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                       end;
                       end;
                     else
                     else
-                      internalerror(2013030903);
+                      internalerror(2013030908);
                   end;
                   end;
 
 
                   ai:=Taicpu.Op_Sym(A_LOOP,S_W,hl_loop_start);
                   ai:=Taicpu.Op_Sym(A_LOOP,S_W,hl_loop_start);
@@ -1051,7 +1051,7 @@ unit cgcpu;
                   ungetcpuregister(list,NR_CX);
                   ungetcpuregister(list,NR_CX);
                 end;
                 end;
               else
               else
-                internalerror(2013030901);
+                internalerror(2013030905);
             end;
             end;
           end
           end
         else
         else
@@ -1069,7 +1069,7 @@ unit cgcpu;
         check_register_size(size,reg);
         check_register_size(size,reg);
 
 
         if size in [OS_64, OS_S64] then
         if size in [OS_64, OS_S64] then
-          internalerror(2013030902);
+          internalerror(2013030906);
 
 
         if size in [OS_32, OS_S32] then
         if size in [OS_32, OS_S32] then
           begin
           begin
@@ -1123,7 +1123,7 @@ unit cgcpu;
               OP_MUL,OP_DIV,OP_IDIV:
               OP_MUL,OP_DIV,OP_IDIV:
                 { special stuff, needs separate handling inside code }
                 { special stuff, needs separate handling inside code }
                 { generator                                          }
                 { generator                                          }
-                internalerror(200109238);
+                internalerror(2001092304);
               OP_ADD,OP_SUB,OP_XOR,OP_OR,OP_AND:
               OP_ADD,OP_SUB,OP_XOR,OP_OR,OP_AND:
                 begin
                 begin
                   get_32bit_ops(op, op1, op2);
                   get_32bit_ops(op, op1, op2);
@@ -1180,7 +1180,7 @@ unit cgcpu;
                         cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                         cg.a_reg_dealloc(list,NR_DEFAULTFLAGS);
                       end;
                       end;
                     else
                     else
-                      internalerror(2013030903);
+                      internalerror(2013030909);
                   end;
                   end;
 
 
                   ai:=Taicpu.Op_Sym(A_LOOP,S_W,hl_loop_start);
                   ai:=Taicpu.Op_Sym(A_LOOP,S_W,hl_loop_start);
@@ -1215,7 +1215,7 @@ unit cgcpu;
         make_simple_ref(list,tmpref);
         make_simple_ref(list,tmpref);
 
 
         if size in [OS_64, OS_S64] then
         if size in [OS_64, OS_S64] then
-          internalerror(2013050803);
+          internalerror(2013050805);
 
 
         if size in [OS_32, OS_S32] then
         if size in [OS_32, OS_S32] then
           begin
           begin
@@ -1279,7 +1279,7 @@ unit cgcpu;
                   a_load_reg_ref(list,paraloc^.size,paraloc^.size,r,ref);
                   a_load_reg_ref(list,paraloc^.size,paraloc^.size,r,ref);
                end;
                end;
              else
              else
-               internalerror(2002071004);
+               internalerror(2002071006);
           end;
           end;
         end;
         end;
       var
       var
@@ -1296,16 +1296,16 @@ unit cgcpu;
                 if cgpara.location^.Next = nil then
                 if cgpara.location^.Next = nil then
                   begin
                   begin
                     if tcgsize2size[cgpara.location^.size] <> 4 then
                     if tcgsize2size[cgpara.location^.size] <> 4 then
-                      internalerror(2013031101);
+                      internalerror(2013031103);
                   end
                   end
                 else
                 else
                   begin
                   begin
                     if tcgsize2size[cgpara.location^.size] <> 2 then
                     if tcgsize2size[cgpara.location^.size] <> 2 then
-                      internalerror(2013031101);
+                      internalerror(2013031104);
                     if tcgsize2size[cgpara.location^.Next^.size] <> 2 then
                     if tcgsize2size[cgpara.location^.Next^.size] <> 2 then
-                      internalerror(2013031101);
+                      internalerror(2013031105);
                     if cgpara.location^.Next^.Next <> nil then
                     if cgpara.location^.Next^.Next <> nil then
-                      internalerror(2013031101);
+                      internalerror(2013031106);
                   end;
                   end;
 
 
                 if tcgsize2size[cgpara.size]>cgpara.alignment then
                 if tcgsize2size[cgpara.size]>cgpara.alignment then
@@ -1354,23 +1354,23 @@ unit cgcpu;
             if tcgsize2size[cgpara.Size] > 2 then
             if tcgsize2size[cgpara.Size] > 2 then
               begin
               begin
                 if tcgsize2size[cgpara.Size] <> 4 then
                 if tcgsize2size[cgpara.Size] <> 4 then
-                  internalerror(2013031101);
+                  internalerror(2013031107);
                 if cgpara.location^.Next = nil then
                 if cgpara.location^.Next = nil then
                   begin
                   begin
                     if tcgsize2size[cgpara.location^.size] <> 4 then
                     if tcgsize2size[cgpara.location^.size] <> 4 then
-                      internalerror(2013031101);
+                      internalerror(2013031108);
                   end
                   end
                 else
                 else
                   begin
                   begin
                     if tcgsize2size[cgpara.location^.size] <> 2 then
                     if tcgsize2size[cgpara.location^.size] <> 2 then
-                      internalerror(2013031101);
+                      internalerror(2013031109);
                     if tcgsize2size[cgpara.location^.Next^.size] <> 2 then
                     if tcgsize2size[cgpara.location^.Next^.size] <> 2 then
-                      internalerror(2013031101);
+                      internalerror(2013031110);
                     if cgpara.location^.Next^.Next <> nil then
                     if cgpara.location^.Next^.Next <> nil then
-                      internalerror(2013031101);
+                      internalerror(2013031111);
                   end;
                   end;
                 if (cgpara.alignment <> 4) and (cgpara.alignment <> 2) then
                 if (cgpara.alignment <> 4) and (cgpara.alignment <> 2) then
-                  internalerror(2013031101);
+                  internalerror(2013031112);
 
 
                 push_const(list,OS_16,a shr 16);
                 push_const(list,OS_16,a shr 16);
                 push_const(list,OS_16,a and $FFFF);
                 push_const(list,OS_16,a and $FFFF);
@@ -1501,19 +1501,19 @@ unit cgcpu;
                     if cgpara.location^.Next = nil then
                     if cgpara.location^.Next = nil then
                       begin
                       begin
                         if tcgsize2size[cgpara.location^.size] <> 4 then
                         if tcgsize2size[cgpara.location^.size] <> 4 then
-                          internalerror(2014032401);
+                          internalerror(2014032404);
                       end
                       end
                     else
                     else
                       begin
                       begin
                         if tcgsize2size[cgpara.location^.size] <> 2 then
                         if tcgsize2size[cgpara.location^.size] <> 2 then
-                          internalerror(2014032401);
+                          internalerror(2014032405);
                         if tcgsize2size[cgpara.location^.Next^.size] <> 2 then
                         if tcgsize2size[cgpara.location^.Next^.size] <> 2 then
-                          internalerror(2014032401);
+                          internalerror(2014032406);
                         if cgpara.location^.Next^.Next <> nil then
                         if cgpara.location^.Next^.Next <> nil then
-                          internalerror(2014032401);
+                          internalerror(2014032407);
                       end;
                       end;
                     if cgpara.alignment > 4 then
                     if cgpara.alignment > 4 then
-                      internalerror(2014032401);
+                      internalerror(2014032408);
 
 
                     if segment<>NR_NO then
                     if segment<>NR_NO then
                       begin
                       begin
@@ -1764,7 +1764,7 @@ unit cgcpu;
         check_register_size(tosize,reg);
         check_register_size(tosize,reg);
 
 
         if (tcgsize2size[fromsize]>32) or (tcgsize2size[tosize]>32) or (fromsize=OS_NO) or (tosize=OS_NO) then
         if (tcgsize2size[fromsize]>32) or (tcgsize2size[tosize]>32) or (fromsize=OS_NO) or (tosize=OS_NO) then
-          internalerror(2011021307);
+          internalerror(2011021302);
 {        if tcgsize2size[tosize]<=tcgsize2size[fromsize] then
 {        if tcgsize2size[tosize]<=tcgsize2size[fromsize] then
           fromsize:=tosize;}
           fromsize:=tosize;}
 
 
@@ -1919,7 +1919,7 @@ unit cgcpu;
                       add_mov(taicpu.op_reg_reg(A_MOV, S_B, reg1, reg2));
                       add_mov(taicpu.op_reg_reg(A_MOV, S_B, reg1, reg2));
                   end
                   end
                 else
                 else
-                  internalerror(2013030210);
+                  internalerror(2013030203);
               OS_16,OS_S16:
               OS_16,OS_S16:
                 case fromsize of
                 case fromsize of
                   OS_8:
                   OS_8:
@@ -1955,7 +1955,7 @@ unit cgcpu;
                         add_mov(taicpu.op_reg_reg(A_MOV, S_W, reg1, reg2));
                         add_mov(taicpu.op_reg_reg(A_MOV, S_W, reg1, reg2));
                     end
                     end
                   else
                   else
-                    internalerror(2013030212);
+                    internalerror(2013030205);
                 end;
                 end;
               OS_32,OS_S32:
               OS_32,OS_S32:
                 case fromsize of
                 case fromsize of
@@ -2013,10 +2013,10 @@ unit cgcpu;
                         end;
                         end;
                     end;
                     end;
                   else
                   else
-                    internalerror(2013030213);
+                    internalerror(2013030206);
                 end;
                 end;
               else
               else
-                internalerror(2013030211);
+                internalerror(2013030204);
             end;
             end;
           end;
           end;
       end;
       end;
@@ -2176,7 +2176,7 @@ unit cgcpu;
               a_jmp_cond(list, OC_B, l_skip);
               a_jmp_cond(list, OC_B, l_skip);
             end;
             end;
           else
           else
-            internalerror(2014010305);
+            internalerror(2014010321);
         end;
         end;
       end;
       end;
 
 
@@ -2204,7 +2204,7 @@ unit cgcpu;
           OC_A:
           OC_A:
             a_jmp_cond(list, OC_A, l_target);
             a_jmp_cond(list, OC_A, l_target);
           else
           else
-            internalerror(2014010306);
+            internalerror(2014010322);
         end;
         end;
       end;
       end;
 
 
@@ -2276,7 +2276,7 @@ unit cgcpu;
                   list.concat(Taicpu.op_const_reg(A_SBB, S_W, 0, reg));
                   list.concat(Taicpu.op_const_reg(A_SBB, S_W, 0, reg));
                 end;
                 end;
               else
               else
-                internalerror(2013123101);
+                internalerror(2013123102);
             end;
             end;
             a_load_reg_reg(list,tmpsize,size,reg,reg);
             a_load_reg_reg(list,tmpsize,size,reg,reg);
           end
           end
@@ -2297,7 +2297,7 @@ unit cgcpu;
                   list.concat(Taicpu.op_const_reg(A_MOV, S_W, 0, reg));
                   list.concat(Taicpu.op_const_reg(A_MOV, S_W, 0, reg));
                 end;
                 end;
               else
               else
-                internalerror(2013123101);
+                internalerror(2013123103);
             end;
             end;
 
 
             current_asmdata.getjumplabel(hl_skip);
             current_asmdata.getjumplabel(hl_skip);
@@ -2682,7 +2682,7 @@ unit cgcpu;
         hsym:=tsym(procdef.parast.Find('self'));
         hsym:=tsym(procdef.parast.Find('self'));
         if not(assigned(hsym) and
         if not(assigned(hsym) and
                (hsym.typ=paravarsym)) then
                (hsym.typ=paravarsym)) then
-          internalerror(200305251);
+          internalerror(2003052502);
         paraloc:=tparavarsym(hsym).paraloc[callerside].location;
         paraloc:=tparavarsym(hsym).paraloc[callerside].location;
         with paraloc^ do
         with paraloc^ do
           begin
           begin
@@ -2715,7 +2715,7 @@ unit cgcpu;
                     end;
                     end;
                 end
                 end
               else
               else
-                internalerror(200309189);
+                internalerror(2003091802);
             end;
             end;
             paraloc:=next;
             paraloc:=next;
           end;
           end;
@@ -2753,7 +2753,7 @@ unit cgcpu;
               op2:=A_AND;
               op2:=A_AND;
             end;
             end;
           else
           else
-            internalerror(200203241);
+            internalerror(2002032403);
         end;
         end;
       end;
       end;
 
 

+ 3 - 3
compiler/i8086/cpupara.pas

@@ -120,7 +120,7 @@ unit cpupara;
     function tcpuparamanager.asm_result_var(def:tdef;pd:tabstractprocdef):boolean;
     function tcpuparamanager.asm_result_var(def:tdef;pd:tabstractprocdef):boolean;
       begin
       begin
         if not(po_assembler in pd.procoptions) then
         if not(po_assembler in pd.procoptions) then
-          internalerror(2018021501);
+          internalerror(2018021502);
         result:=ret_in_param(def,pd);
         result:=ret_in_param(def,pd);
       end;
       end;
 
 
@@ -495,7 +495,7 @@ unit cpupara;
             else
             else
               begin
               begin
                 if paralen=0 then
                 if paralen=0 then
-                  internalerror(200501163);
+                  internalerror(2005011604);
                 firstparaloc:=true;
                 firstparaloc:=true;
                 while (paralen>0) do
                 while (paralen>0) do
                   begin
                   begin
@@ -691,7 +691,7 @@ unit cpupara;
                           else
                           else
                             begin
                             begin
                               if paralen=0 then
                               if paralen=0 then
-                                internalerror(200501163);
+                                internalerror(2005011605);
                               firstparaloc:=true;
                               firstparaloc:=true;
                               while (paralen>0) do
                               while (paralen>0) do
                                 begin
                                 begin

+ 2 - 2
compiler/i8086/hlcgcpu.pas

@@ -423,7 +423,7 @@ implementation
         size:=voidpointertype;
         size:=voidpointertype;
 
 
       if is_hugepointer(size) then
       if is_hugepointer(size) then
-        internalerror(2015111201)
+        internalerror(2015111204)
       else if is_farpointer(size) then
       else if is_farpointer(size) then
         cg.a_op_const_reg(list,Op,OS_16,a,reg)
         cg.a_op_const_reg(list,Op,OS_16,a,reg)
       else
       else
@@ -581,7 +581,7 @@ implementation
         srcseg: TRegister;
         srcseg: TRegister;
       begin
       begin
         if (procdef.extnumber=$ffff) then
         if (procdef.extnumber=$ffff) then
-          Internalerror(200006139);
+          Internalerror(2000061306);
         if current_settings.x86memorymodel in x86_far_data_models then
         if current_settings.x86memorymodel in x86_far_data_models then
           srcseg:=NR_ES
           srcseg:=NR_ES
         else
         else

+ 6 - 6
compiler/i8086/n8086add.pas

@@ -106,7 +106,7 @@ interface
               niln:
               niln:
                 lv:=0;
                 lv:=0;
               else
               else
-                internalerror(2002080202);
+                internalerror(2002080201);
             end;
             end;
             case rt of
             case rt of
               ordconstn:
               ordconstn:
@@ -116,7 +116,7 @@ interface
               niln:
               niln:
                 rv:=0;
                 rv:=0;
               else
               else
-                internalerror(2002080203);
+                internalerror(2002080204);
             end;
             end;
 
 
             case nodetype of
             case nodetype of
@@ -138,7 +138,7 @@ interface
                     if (rt=pointerconstn) then
                     if (rt=pointerconstn) then
                       begin
                       begin
                         if not(nf_has_pointerdiv in flags) then
                         if not(nf_has_pointerdiv in flags) then
-                          internalerror(2008030101);
+                          internalerror(2008030102);
                         { todo: implement pointer-pointer as well }
                         { todo: implement pointer-pointer as well }
                         internalerror(2014040607);
                         internalerror(2014040607);
                         //t := cpointerconstnode.create(qword(v),resultdef);
                         //t := cpointerconstnode.create(qword(v),resultdef);
@@ -240,7 +240,7 @@ interface
           else
           else
             begin
             begin
               { everything should be handled in pass_1 (JM) }
               { everything should be handled in pass_1 (JM) }
-              internalerror(200109051);
+              internalerror(2001090503);
             end;
             end;
         end;
         end;
 
 
@@ -456,7 +456,7 @@ interface
         else if (left.resultdef.typ<>pointerdef) and (right.resultdef.typ=pointerdef) then
         else if (left.resultdef.typ<>pointerdef) and (right.resultdef.typ=pointerdef) then
           pointernode:=right
           pointernode:=right
         else
         else
-          internalerror(2014040601);
+          internalerror(2014040608);
 
 
         if not (nodetype in [addn,subn]) then
         if not (nodetype in [addn,subn]) then
           internalerror(2014040602);
           internalerror(2014040602);
@@ -927,7 +927,7 @@ interface
                    end;
                    end;
                end;
                end;
              else
              else
-               internalerror(200203282);
+               internalerror(2002032801);
            end;
            end;
          end;
          end;
       end;
       end;

+ 2 - 2
compiler/i8086/n8086inl.pas

@@ -178,7 +178,7 @@ implementation
                          { find proc field in methodpointer record }
                          { find proc field in methodpointer record }
                          hsym:=tfieldvarsym(trecorddef(procpointertype).symtable.Find('proc'));
                          hsym:=tfieldvarsym(trecorddef(procpointertype).symtable.Find('proc'));
                          if not assigned(hsym) then
                          if not assigned(hsym) then
-                           internalerror(200412041);
+                           internalerror(2004120404);
                          { Load tmehodpointer(left).proc }
                          { Load tmehodpointer(left).proc }
                          result:=csubscriptnode.create(
                          result:=csubscriptnode.create(
                                       hsym,
                                       hsym,
@@ -346,7 +346,7 @@ implementation
                      addvalue:=tpointerdef(tcallparanode(left).left.resultdef).pointeddef.size;
                      addvalue:=tpointerdef(tcallparanode(left).left.resultdef).pointeddef.size;
                  end;
                  end;
                else
                else
-                 internalerror(10081);
+                 internalerror(2020100815);
              end;
              end;
              { second_ argument specified?, must be a s16bit in register }
              { second_ argument specified?, must be a s16bit in register }
              if assigned(tcallparanode(left).right) then
              if assigned(tcallparanode(left).right) then

+ 1 - 1
compiler/i8086/n8086ld.pas

@@ -134,7 +134,7 @@ implementation
             { make sure hregister can't allocate the register necessary for the parameter }
             { make sure hregister can't allocate the register necessary for the parameter }
             pvd:=search_system_type('TRELOCATETHREADVARHANDLER').typedef;
             pvd:=search_system_type('TRELOCATETHREADVARHANDLER').typedef;
             if pvd.typ<>procvardef then
             if pvd.typ<>procvardef then
-              internalerror(2012120901);
+              internalerror(2012120902);
             paraloc1.init;
             paraloc1.init;
             paramanager.getcgtempparaloc(current_asmdata.CurrAsmList,tprocvardef(pvd),1,paraloc1);
             paramanager.getcgtempparaloc(current_asmdata.CurrAsmList,tprocvardef(pvd),1,paraloc1);
             hregister:=hlcg.getaddressregister(current_asmdata.CurrAsmList,pvd);
             hregister:=hlcg.getaddressregister(current_asmdata.CurrAsmList,pvd);

+ 1 - 1
compiler/i8086/n8086mat.pas

@@ -114,7 +114,7 @@ implementation
 
 
         if is_64bitint(resultdef) or is_32bitint(resultdef) then
         if is_64bitint(resultdef) or is_32bitint(resultdef) then
           { should be handled in pass_1 (JM) }
           { should be handled in pass_1 (JM) }
-          internalerror(200109052);
+          internalerror(2001090506);
         { put numerator in register }
         { put numerator in register }
         location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
         location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
         hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,resultdef,false);
         hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,resultdef,false);

+ 3 - 3
compiler/i8086/n8086mem.pas

@@ -96,7 +96,7 @@ implementation
             location_reset(location,LOC_REGISTER,OS_16);
             location_reset(location,LOC_REGISTER,OS_16);
             location.register:=hlcg.getaddressregister(current_asmdata.CurrAsmList,voidnearpointertype);
             location.register:=hlcg.getaddressregister(current_asmdata.CurrAsmList,voidnearpointertype);
             if not(left.location.loc in [LOC_REFERENCE,LOC_CREFERENCE]) then
             if not(left.location.loc in [LOC_REFERENCE,LOC_CREFERENCE]) then
-              internalerror(2015103001);
+              internalerror(2015103003);
             hlcg.a_loadaddr_ref_reg(current_asmdata.CurrAsmList,left.resultdef,voidnearpointertype,left.location.reference,location.register);
             hlcg.a_loadaddr_ref_reg(current_asmdata.CurrAsmList,left.resultdef,voidnearpointertype,left.location.reference,location.register);
           end
           end
         else
         else
@@ -151,7 +151,7 @@ implementation
                    cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_16,(left.location.value shr 16) and $FFFF,location.reference.segment);
                    cg.a_load_const_reg(current_asmdata.CurrAsmList,OS_16,(left.location.value shr 16) and $FFFF,location.reference.segment);
                  end;
                  end;
                else
                else
-                 internalerror(200507031);
+                 internalerror(2005070302);
             end;
             end;
             if (cs_use_heaptrc in current_settings.globalswitches) and
             if (cs_use_heaptrc in current_settings.globalswitches) and
                (cs_checkpointer in current_settings.localswitches) and
                (cs_checkpointer in current_settings.localswitches) and
@@ -165,7 +165,7 @@ implementation
              begin
              begin
                if not searchsym_in_named_module('HEAPTRC','CHECKPOINTER',sym,st) or
                if not searchsym_in_named_module('HEAPTRC','CHECKPOINTER',sym,st) or
                   (sym.typ<>procsym) then
                   (sym.typ<>procsym) then
-                 internalerror(2012010601);
+                 internalerror(2012010603);
                pd:=tprocdef(tprocsym(sym).ProcdefList[0]);
                pd:=tprocdef(tprocsym(sym).ProcdefList[0]);
                paraloc1.init;
                paraloc1.init;
                paramanager.getcgtempparaloc(current_asmdata.CurrAsmList,pd,1,paraloc1);
                paramanager.getcgtempparaloc(current_asmdata.CurrAsmList,pd,1,paraloc1);

+ 1 - 1
compiler/i8086/symcpu.pas

@@ -250,7 +250,7 @@ implementation
     else if p is tcpuprocvardef then
     else if p is tcpuprocvardef then
       result:=tcpuprocvardef(p).is_far
       result:=tcpuprocvardef(p).is_far
     else
     else
-      internalerror(2014041301);
+      internalerror(2014041303);
   end;
   end;
 
 
   { true if p is a far proc var }
   { true if p is a far proc var }

+ 1 - 1
compiler/jvm/agjasmin.pas

@@ -865,7 +865,7 @@ implementation
         kindname: ansistring;
         kindname: ansistring;
       begin
       begin
         if not(obj.owner.defowner.typ in [objectdef,recorddef]) then
         if not(obj.owner.defowner.typ in [objectdef,recorddef]) then
-          internalerror(2011021701);
+          internalerror(2011021704);
         { Nested classes in the Pascal sense are equivalent to "static"
         { Nested classes in the Pascal sense are equivalent to "static"
           inner classes in Java -- will be changed when support for
           inner classes in Java -- will be changed when support for
           Java-style non-static classes is added }
           Java-style non-static classes is added }

+ 4 - 4
compiler/jvm/hlcgcpu.pas

@@ -756,7 +756,7 @@ implementation
                 end;
                 end;
               end;
               end;
             else
             else
-              internalerror(2011081801);
+              internalerror(2011081802);
           end;
           end;
         end;
         end;
     end;
     end;
@@ -843,7 +843,7 @@ implementation
               decstack(list,2);
               decstack(list,2);
             end;
             end;
           else
           else
-            internalerror(2010120538);
+            internalerror(2010120505);
         end;
         end;
       end;
       end;
 
 
@@ -1618,7 +1618,7 @@ implementation
             s64real:
             s64real:
               opc:=a_dreturn;
               opc:=a_dreturn;
             else
             else
-              internalerror(2011010213);
+              internalerror(2011010202);
           end;
           end;
         else
         else
           opc:=a_areturn;
           opc:=a_areturn;
@@ -2429,7 +2429,7 @@ implementation
         exit;
         exit;
       selfpara:=tparavarsym(current_procinfo.procdef.parast.find('self'));
       selfpara:=tparavarsym(current_procinfo.procdef.parast.find('self'));
       if not assigned(selfpara) then
       if not assigned(selfpara) then
-        internalerror(2011033001);
+        internalerror(2011033002);
       selfreg:=getaddressregister(list,selfpara.vardef);
       selfreg:=getaddressregister(list,selfpara.vardef);
       a_load_loc_reg(list,obj,obj,selfpara.localloc,selfreg);
       a_load_loc_reg(list,obj,obj,selfpara.localloc,selfreg);
       cgutils.reference_reset_base(ref,selfreg,0,ctempposinvalid,1,[]);
       cgutils.reference_reset_base(ref,selfreg,0,ctempposinvalid,1,[]);

+ 2 - 2
compiler/jvm/jvmdef.pas

@@ -449,7 +449,7 @@ implementation
         errdef: tdef;
         errdef: tdef;
       begin
       begin
         if not jvmtryencodetype(def,result,false,errdef) then
         if not jvmtryencodetype(def,result,false,errdef) then
-          internalerror(2011012205);
+          internalerror(2011012201);
         primitivetype:=false;
         primitivetype:=false;
         if length(result)=1 then
         if length(result)=1 then
           begin
           begin
@@ -463,7 +463,7 @@ implementation
               'F': result:='float';
               'F': result:='float';
               'D': result:='double';
               'D': result:='double';
               else
               else
-                internalerror(2011012206);
+                internalerror(2011012203);
               end;
               end;
             primitivetype:=true;
             primitivetype:=true;
           end
           end

+ 1 - 1
compiler/jvm/njvmcnv.pas

@@ -1021,7 +1021,7 @@ implementation
           fsym:=tfieldvarsym(search_struct_member(tcpuprocvardef(fromdef).classdef,'METHOD'));
           fsym:=tfieldvarsym(search_struct_member(tcpuprocvardef(fromdef).classdef,'METHOD'));
           if not assigned(fsym) or
           if not assigned(fsym) or
              (fsym.typ<>fieldvarsym) then
              (fsym.typ<>fieldvarsym) then
-            internalerror(2011072414);
+            internalerror(2011072401);
           result:=csubscriptnode.create(fsym,left);
           result:=csubscriptnode.create(fsym,left);
           left:=nil;
           left:=nil;
         end;
         end;

+ 3 - 3
compiler/jvm/njvmmem.pas

@@ -263,7 +263,7 @@ implementation
                   end;
                   end;
               end
               end
             else
             else
-              internalerror(2011072506);
+              internalerror(2011072503);
           end
           end
         else if (left.resultdef.typ=procdef) then
         else if (left.resultdef.typ=procdef) then
           begin
           begin
@@ -334,7 +334,7 @@ implementation
             vs:=search_struct_member(tobjectdef(left.resultdef),'GETCLASS');
             vs:=search_struct_member(tobjectdef(left.resultdef),'GETCLASS');
             if not assigned(vs) or
             if not assigned(vs) or
                (tsym(vs).typ<>procsym) then
                (tsym(vs).typ<>procsym) then
-              internalerror(2011041901);
+              internalerror(2011041903);
             result:=ccallnode.create(nil,tprocsym(vs),vs.owner,left,[],nil);
             result:=ccallnode.create(nil,tprocsym(vs),vs.owner,left,[],nil);
             inserttypeconv_explicit(result,resultdef);
             inserttypeconv_explicit(result,resultdef);
             { reused }
             { reused }
@@ -391,7 +391,7 @@ implementation
             psym:=search_struct_member(tabstractrecorddef(stringclass),'CHARAT');
             psym:=search_struct_member(tabstractrecorddef(stringclass),'CHARAT');
             if not assigned(psym) or
             if not assigned(psym) or
                (psym.typ<>procsym) then
                (psym.typ<>procsym) then
-              internalerror(2011031501);
+              internalerror(2011031502);
             { Pascal strings are 1-based, Java strings 0-based }
             { Pascal strings are 1-based, Java strings 0-based }
             result:=ccallnode.create(ccallparanode.create(
             result:=ccallnode.create(ccallparanode.create(
               caddnode.create(subn,right,genintconstnode(1)),nil),tprocsym(psym),
               caddnode.create(subn,right,genintconstnode(1)),nil),tprocsym(psym),

+ 2 - 2
compiler/jvm/njvmtcon.pas

@@ -197,7 +197,7 @@ implementation
                 if (tstringconstnode(n).cst_type in [cst_unicodestring,cst_widestring]) then
                 if (tstringconstnode(n).cst_type in [cst_unicodestring,cst_widestring]) then
                   inserttypeconv(n,getansistringdef);
                   inserttypeconv(n,getansistringdef);
                   if n.nodetype<>stringconstn then
                   if n.nodetype<>stringconstn then
-                    internalerror(2010033003);
+                    internalerror(2010033010);
                   ca:=pbyte(tstringconstnode(n).value_str);
                   ca:=pbyte(tstringconstnode(n).value_str);
                 { For tp7 the maximum lentgh can be 255 }
                 { For tp7 the maximum lentgh can be 255 }
                 if (m_tp7 in current_settings.modeswitches) and
                 if (m_tp7 in current_settings.modeswitches) and
@@ -214,7 +214,7 @@ implementation
                begin
                begin
                  inserttypeconv(n,cansichartype);
                  inserttypeconv(n,cansichartype);
                  if not is_constcharnode(n) then
                  if not is_constcharnode(n) then
-                   internalerror(2010033001);
+                   internalerror(2010033007);
                  ch[0]:=chr(tordconstnode(n).value.uvalue and $ff);
                  ch[0]:=chr(tordconstnode(n).value.uvalue and $ff);
                  ca:=@ch;
                  ca:=@ch;
                  len:=1;
                  len:=1;

+ 3 - 3
compiler/jvm/pjvm.pas

@@ -267,11 +267,11 @@ implementation
         pd.synthetickind:=tsk_jvm_enum_fpcordinal;
         pd.synthetickind:=tsk_jvm_enum_fpcordinal;
         { add static class method to convert an ordinal to the corresponding enum }
         { add static class method to convert an ordinal to the corresponding enum }
         if not str_parse_method_dec('function FPCValueOf(__fpc_int: longint): __FPC_TEnumClassAlias; static;',potype_function,true,enumclass,pd) then
         if not str_parse_method_dec('function FPCValueOf(__fpc_int: longint): __FPC_TEnumClassAlias; static;',potype_function,true,enumclass,pd) then
-          internalerror(2011062402);
+          internalerror(2011062403);
         pd.synthetickind:=tsk_jvm_enum_fpcvalueof;
         pd.synthetickind:=tsk_jvm_enum_fpcvalueof;
         { similar (instance) function for use in set factories; implements FpcEnumValueObtainable interface }
         { similar (instance) function for use in set factories; implements FpcEnumValueObtainable interface }
         if not str_parse_method_dec('function fpcGenericValueOf(__fpc_int: longint): JLEnum;',potype_function,false,enumclass,pd) then
         if not str_parse_method_dec('function fpcGenericValueOf(__fpc_int: longint): JLEnum;',potype_function,false,enumclass,pd) then
-          internalerror(2011062402);
+          internalerror(2011062404);
         pd.synthetickind:=tsk_jvm_enum_fpcvalueof;
         pd.synthetickind:=tsk_jvm_enum_fpcvalueof;
 
 
         { insert "public static valueOf(string): tenumclass" that returns tenumclass(inherited valueOf(tenumclass,string)) }
         { insert "public static valueOf(string): tenumclass" that returns tenumclass(inherited valueOf(tenumclass,string)) }
@@ -417,7 +417,7 @@ implementation
             old_current_structdef:=current_structdef;
             old_current_structdef:=current_structdef;
             current_structdef:=pvclass;
             current_structdef:=pvclass;
             if not str_parse_method_dec('constructor Create(__intf:'+pvintf.objextname^+');overload;',potype_constructor,false,pvclass,methoddef) then
             if not str_parse_method_dec('constructor Create(__intf:'+pvintf.objextname^+');overload;',potype_constructor,false,pvclass,methoddef) then
-              internalerror(2011092401);
+              internalerror(2011092402);
             methoddef.synthetickind:=tsk_jvm_procvar_intconstr;
             methoddef.synthetickind:=tsk_jvm_procvar_intconstr;
             methoddef.skpara:=def;
             methoddef.skpara:=def;
             current_structdef:=old_current_structdef;
             current_structdef:=old_current_structdef;

+ 1 - 1
compiler/llvm/aasmllvm.pas

@@ -671,7 +671,7 @@ uses
                 2:
                 2:
                   result:=oper[1]^.def;
                   result:=oper[1]^.def;
                 else
                 else
-                  internalerror(2013110105);
+                  internalerror(2013110111);
               end;
               end;
             end;
             end;
           la_fence,
           la_fence,

+ 5 - 5
compiler/llvm/agllvm.pas

@@ -307,7 +307,7 @@ implementation
             if ref.offset<>0 then
             if ref.offset<>0 then
               result:=result+'offset='+tostr(ref.offset);
               result:=result+'offset='+tostr(ref.offset);
             result:=result+')**';
             result:=result+')**';
-            internalerror(2013060225);
+            internalerror(2013060203);
           end;
           end;
          if ref.base<>NR_NO then
          if ref.base<>NR_NO then
            result:=result+getregisterstring(ref.base)
            result:=result+getregisterstring(ref.base)
@@ -454,7 +454,7 @@ implementation
                else
                else
                  getopstr:='null';
                  getopstr:='null';
                if o.ref^.offset<>0 then
                if o.ref^.offset<>0 then
-                 internalerror(2013060223);
+                 internalerror(2013060202);
              end
              end
            else
            else
              getopstr:=getreferencestring(o.ref^,refwithalign);
              getopstr:=getreferencestring(o.ref^,refwithalign);
@@ -883,7 +883,7 @@ implementation
               aitrealconst_s64comp:
               aitrealconst_s64comp:
                 writer.AsmWriteLn(asminfo^.comment+'value: '+extended2str(tai_realconst(hp).value.s64compval));
                 writer.AsmWriteLn(asminfo^.comment+'value: '+extended2str(tai_realconst(hp).value.s64compval));
               else
               else
-                internalerror(2014050604);
+                internalerror(2014050603);
             end;
             end;
             internalerror(2016120202);
             internalerror(2016120202);
           end;
           end;
@@ -960,7 +960,7 @@ implementation
 }
 }
             end;
             end;
           else
           else
-            internalerror(200704251);
+            internalerror(2007042504);
         end;
         end;
       end;
       end;
 
 
@@ -1378,7 +1378,7 @@ implementation
             begin
             begin
               { must only appear as an operand }
               { must only appear as an operand }
               if fdecllevel=0 then
               if fdecllevel=0 then
-                internalerror(2019050110);
+                internalerror(2019050101);
               writer.AsmWrite('!');
               writer.AsmWrite('!');
               writer.AsmWrite(tai_llvmmetadatareferenceoperand(hp).id);
               writer.AsmWrite(tai_llvmmetadatareferenceoperand(hp).id);
               writer.AsmWrite(' !');
               writer.AsmWrite(' !');

+ 5 - 5
compiler/llvm/hlcgllvm.pas

@@ -270,7 +270,7 @@ implementation
             LOC_REFERENCE,LOC_CREFERENCE:
             LOC_REFERENCE,LOC_CREFERENCE:
               begin
               begin
                  if assigned(location^.next) then
                  if assigned(location^.next) then
-                   internalerror(2010052906);
+                   internalerror(2010052901);
                  reference_reset_base(ref,cpointerdef.getreusable(size),location^.reference.index,location^.reference.offset,ctempposinvalid,newalignment(cgpara.alignment,cgpara.intsize-sizeleft),[]);
                  reference_reset_base(ref,cpointerdef.getreusable(size),location^.reference.index,location^.reference.offset,ctempposinvalid,newalignment(cgpara.alignment,cgpara.intsize-sizeleft),[]);
                  if (def_cgsize(size)<>OS_NO) and
                  if (def_cgsize(size)<>OS_NO) and
                     (size.size=sizeleft) and
                     (size.size=sizeleft) and
@@ -295,11 +295,11 @@ implementation
                    OS_NO:
                    OS_NO:
                      a_loadmm_ref_reg(list,location^.def,location^.def,tmpref,location^.register,nil);
                      a_loadmm_ref_reg(list,location^.def,location^.def,tmpref,location^.register,nil);
                    else
                    else
-                     internalerror(2010053101);
+                     internalerror(2010053105);
                  end;
                  end;
               end
               end
             else
             else
-              internalerror(2010053111);
+              internalerror(2010053107);
           end;
           end;
           inc(totaloffset,tcgsize2size[location^.size]);
           inc(totaloffset,tcgsize2size[location^.size]);
           dec(sizeleft,tcgsize2size[location^.size]);
           dec(sizeleft,tcgsize2size[location^.size]);
@@ -685,7 +685,7 @@ implementation
     begin
     begin
       if (fromsize=llvm_metadatatype) or
       if (fromsize=llvm_metadatatype) or
          (tosize=llvm_metadatatype) then
          (tosize=llvm_metadatatype) then
-        internalerror(2019122802);
+        internalerror(2019122812);
       sref:=make_simple_ref(list,ref,tosize);
       sref:=make_simple_ref(list,ref,tosize);
       hreg:=register;
       hreg:=register;
       (* typecast the pointer to the value instead of the value itself if
       (* typecast the pointer to the value instead of the value itself if
@@ -758,7 +758,7 @@ implementation
     begin
     begin
       if (fromsize=llvm_metadatatype) or
       if (fromsize=llvm_metadatatype) or
          (tosize=llvm_metadatatype) then
          (tosize=llvm_metadatatype) then
-        internalerror(2019122801);
+        internalerror(2019122805);
       op:=llvmconvop(fromsize,tosize,true);
       op:=llvmconvop(fromsize,tosize,true);
       { converting from pointer to something else and vice versa is only
       { converting from pointer to something else and vice versa is only
         possible via an intermediate pass to integer. Same for "something else"
         possible via an intermediate pass to integer. Same for "something else"

+ 1 - 1
compiler/llvm/llvmdef.pas

@@ -224,7 +224,7 @@ implementation
                   begin
                   begin
                     { todo: update once we support vectors }
                     { todo: update once we support vectors }
                     if not(toregtyp in [R_FPUREGISTER,R_MMREGISTER]) then
                     if not(toregtyp in [R_FPUREGISTER,R_MMREGISTER]) then
-                      internalerror(2014062203);
+                      internalerror(2014062202);
                     if tobytesize<frombytesize then
                     if tobytesize<frombytesize then
                       result:=la_fptrunc
                       result:=la_fptrunc
                     else
                     else

+ 2 - 2
compiler/llvm/llvmpara.pas

@@ -75,7 +75,7 @@ unit llvmpara;
   procedure tllvmparamanager.getcgtempparaloc(list: TAsmList; pd: tabstractprocdef; nr: longint; var cgpara: tcgpara);
   procedure tllvmparamanager.getcgtempparaloc(list: TAsmList; pd: tabstractprocdef; nr: longint; var cgpara: tcgpara);
     begin
     begin
       if (nr<1) or (nr>pd.paras.count) then
       if (nr<1) or (nr>pd.paras.count) then
-        InternalError(2015040401);
+        InternalError(2015040402);
       pd.init_paraloc_info(callerside);
       pd.init_paraloc_info(callerside);
       createtempparaloc(list,pd.proccalloption,tparavarsym(pd.paras[nr-1]),true,cgpara);
       createtempparaloc(list,pd.proccalloption,tparavarsym(pd.paras[nr-1]),true,cgpara);
     end;
     end;
@@ -256,7 +256,7 @@ unit llvmpara;
           not(po_assembler in p.procoptions)) then
           not(po_assembler in p.procoptions)) then
         begin
         begin
           if not(paraloc^.loc in [LOC_REGISTER,LOC_FPUREGISTER,LOC_MMREGISTER]) then
           if not(paraloc^.loc in [LOC_REGISTER,LOC_FPUREGISTER,LOC_MMREGISTER]) then
-            internalerror(2019011902);
+            internalerror(2019011901);
           reducetosingleregparaloc(paraloc,result.def,paraloc^.register);
           reducetosingleregparaloc(paraloc,result.def,paraloc^.register);
         end;
         end;
     end;
     end;

+ 1 - 1
compiler/llvm/llvmpi.pas

@@ -408,7 +408,7 @@ implementation
       begin
       begin
         result:=TAsmLabel(fexceptlabelstack.last);
         result:=TAsmLabel(fexceptlabelstack.last);
         if not assigned(result) then
         if not assigned(result) then
-          internalerror(2016121703);
+          internalerror(2016121706);
       end;
       end;
 
 
 
 

+ 2 - 2
compiler/llvm/llvmtype.pas

@@ -685,9 +685,9 @@ implementation
                     dbg_state_written:
                     dbg_state_written:
                       continue;
                       continue;
                     dbg_state_writing:
                     dbg_state_writing:
-                      internalerror(200610052);
+                      internalerror(2006100501);
                     dbg_state_unused:
                     dbg_state_unused:
-                      internalerror(200610053);
+                      internalerror(2006100505);
                     dbg_state_used:
                     dbg_state_used:
                       appenddef(current_asmdata.asmlists[al_start],def)
                       appenddef(current_asmdata.asmlists[al_start],def)
                   else
                   else

+ 1 - 1
compiler/llvm/nllvmmem.pas

@@ -244,7 +244,7 @@ implementation
           exit;
           exit;
         end;
         end;
       if (l>8*sizeof(aint)) then
       if (l>8*sizeof(aint)) then
-        internalerror(200608051);
+        internalerror(2006080502);
 
 
       { adjust the index by subtracting the lower bound of the array and adding
       { adjust the index by subtracting the lower bound of the array and adding
         any constant adjustments }
         any constant adjustments }

+ 1 - 1
compiler/llvm/nllvmtcon.pas

@@ -469,7 +469,7 @@ implementation
       if not assigned(ll.lab) then
       if not assigned(ll.lab) then
         begin
         begin
           if ll.ofs<>0 then
           if ll.ofs<>0 then
-            internalerror(2015030701);
+            internalerror(2015030703);
           inherited;
           inherited;
           exit;
           exit;
         end;
         end;

+ 7 - 7
compiler/m68k/cgcpu.pas

@@ -1194,7 +1194,7 @@ unit cgcpu;
           OP_DIV,
           OP_DIV,
           OP_IDIV:
           OP_IDIV:
               begin
               begin
-                 internalerror(20020816);
+                 internalerror(2002081601);
               end;
               end;
           OP_MUL,
           OP_MUL,
           OP_IMUL:
           OP_IMUL:
@@ -1294,7 +1294,7 @@ unit cgcpu;
                 move_if_needed(list, size, scratch_reg, reg);
                 move_if_needed(list, size, scratch_reg, reg);
               end;
               end;
         else
         else
-            internalerror(20020729);
+            internalerror(2002072901);
          end;
          end;
       end;
       end;
 
 
@@ -1425,7 +1425,7 @@ unit cgcpu;
           OP_DIV,
           OP_DIV,
           OP_IDIV :
           OP_IDIV :
               begin
               begin
-                internalerror(20020816);
+                internalerror(2002081602);
               end;
               end;
           OP_MUL,
           OP_MUL,
           OP_IMUL:
           OP_IMUL:
@@ -1471,7 +1471,7 @@ unit cgcpu;
                 move_if_needed(list, size, hreg2, dst);
                 move_if_needed(list, size, hreg2, dst);
               end;
               end;
         else
         else
-            internalerror(20020729);
+            internalerror(2002072902);
          end;
          end;
       end;
       end;
 
 
@@ -2212,7 +2212,7 @@ unit cgcpu;
               OS_16:
               OS_16:
                 begin
                 begin
                   if (isaddressregister(reg)) then
                   if (isaddressregister(reg)) then
-                    internalerror(2015031502);
+                    internalerror(2015031503);
                   //list.concat(tai_comment.create(strpnew('zero extend word')));
                   //list.concat(tai_comment.create(strpnew('zero extend word')));
                   list.concat(taicpu.op_const_reg(A_AND,S_L,$FFFF,reg));
                   list.concat(taicpu.op_const_reg(A_AND,S_L,$FFFF,reg));
                 end;
                 end;
@@ -2577,10 +2577,10 @@ unit cgcpu;
           { this is handled in 1st pass for 32-bit cpus (helper call) }
           { this is handled in 1st pass for 32-bit cpus (helper call) }
           OP_IDIV,OP_DIV,
           OP_IDIV,OP_DIV,
           OP_IMUL,OP_MUL:
           OP_IMUL,OP_MUL:
-            internalerror(2002081701);
+            internalerror(2002081703);
           { this is also handled in 1st pass for 32-bit cpus (helper call) }
           { this is also handled in 1st pass for 32-bit cpus (helper call) }
           OP_SAR,OP_SHL,OP_SHR:
           OP_SAR,OP_SHL,OP_SHR:
-            internalerror(2002081702);
+            internalerror(2002081704);
           { these should have been handled already by earlier passes }
           { these should have been handled already by earlier passes }
           OP_NOT,OP_NEG:
           OP_NOT,OP_NEG:
             internalerror(2012110403);
             internalerror(2012110403);

+ 1 - 1
compiler/m68k/cpupara.pas

@@ -699,7 +699,7 @@ unit cpupara;
               end;
               end;
           end
           end
         else
         else
-          internalerror(200410231);
+          internalerror(2004102304);
         create_funcretloc_info(p,side);
         create_funcretloc_info(p,side);
       end;
       end;
 
 

+ 1 - 1
compiler/m68k/n68kadd.pas

@@ -410,7 +410,7 @@ implementation
                 cgop:=OP_IMUL;
                 cgop:=OP_IMUL;
             end;
             end;
           else
           else
-            internalerror(2013120104);
+            internalerror(2013120111);
         end;
         end;
 
 
         pass_left_right;
         pass_left_right;

+ 1 - 1
compiler/m68k/n68kcal.pas

@@ -81,7 +81,7 @@ implementation
                   inc(pushedparasize,2); { kludge, trap code should be a hidden para instead... }
                   inc(pushedparasize,2); { kludge, trap code should be a hidden para instead... }
                 end
                 end
               else
               else
-                internalerror(2016100301);
+                internalerror(2016100302);
             end;
             end;
           system_m68k_amiga:
           system_m68k_amiga:
             begin
             begin

+ 1 - 1
compiler/m68k/n68kmat.pas

@@ -218,7 +218,7 @@ implementation
                current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEG,fpuregopsize,left.location.register,location.register));
                current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_FNEG,fpuregopsize,left.location.register,location.register));
             end;
             end;
           else
           else
-            internalerror(200306021);
+            internalerror(2003060202);
         end;
         end;
       end;
       end;
 
 

+ 1 - 1
compiler/m68k/n68kmem.pas

@@ -161,7 +161,7 @@ implementation
              exit;
              exit;
            end;
            end;
          if (l > 8*sizeof(aint)) then
          if (l > 8*sizeof(aint)) then
-           internalerror(200608051);
+           internalerror(2006080503);
          sref.ref := location.reference;
          sref.ref := location.reference;
          hreg := cg.getintregister(current_asmdata.CurrAsmList,OS_ADDR);
          hreg := cg.getintregister(current_asmdata.CurrAsmList,OS_ADDR);
          cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SUB,OS_INT,tarraydef(left.resultdef).lowrange,maybe_const_reg,hreg);
          cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_SUB,OS_INT,tarraydef(left.resultdef).lowrange,maybe_const_reg,hreg);

+ 4 - 4
compiler/mips/aasmcpu.pas

@@ -453,11 +453,11 @@ end;
                 R_SUBFD :
                 R_SUBFD :
                   result:=taicpu.op_reg_ref(A_LDC1,r,ref);
                   result:=taicpu.op_reg_ref(A_LDC1,r,ref);
                 else
                 else
-                  internalerror(200401042);
+                  internalerror(2004010418);
               end;
               end;
             end
             end
           else
           else
-            internalerror(200401041);
+            internalerror(2004010408);
         end;
         end;
       end;
       end;
 
 
@@ -475,11 +475,11 @@ end;
                 R_SUBFD :
                 R_SUBFD :
                   result:=taicpu.op_reg_ref(A_SDC1,r,ref);
                   result:=taicpu.op_reg_ref(A_SDC1,r,ref);
                 else
                 else
-                  internalerror(200401042);
+                  internalerror(2004010419);
               end;
               end;
             end
             end
           else
           else
-            internalerror(200401041);
+            internalerror(2004010409);
         end;
         end;
       end;
       end;
 
 

+ 1 - 1
compiler/mips/cgcpu.pas

@@ -630,7 +630,7 @@ begin
   if (cs_create_pic in current_settings.moduleswitches) then
   if (cs_create_pic in current_settings.moduleswitches) then
     begin
     begin
       if not (pi_needs_got in current_procinfo.flags) then
       if not (pi_needs_got in current_procinfo.flags) then
-        InternalError(2013060103);
+        InternalError(2013060104);
       { For PIC global symbols offset must be handled separately.
       { For PIC global symbols offset must be handled separately.
         Otherwise (non-PIC or local symbols) offset can be encoded
         Otherwise (non-PIC or local symbols) offset can be encoded
         into relocation even if exceeds 16 bits. }
         into relocation even if exceeds 16 bits. }

+ 1 - 1
compiler/mips/cpuelf.pas

@@ -1069,7 +1069,7 @@ implementation
           else
           else
             begin
             begin
               writeln(objsec.fullname,'+',objreloc.dataoffset,' ',objreloc.ftype);
               writeln(objsec.fullname,'+',objreloc.dataoffset,' ',objreloc.ftype);
-              internalerror(200604014);
+              internalerror(2006040106);
             end;
             end;
           end
           end
         else           { not relocsec.Used }
         else           { not relocsec.Used }

+ 1 - 1
compiler/mips/cpugas.pas

@@ -177,7 +177,7 @@ unit cpugas;
             top_ref:
             top_ref:
               getopstr := getreferencestring(ref^);
               getopstr := getreferencestring(ref^);
             else
             else
-              internalerror(10001);
+              internalerror(2020100809);
           end;
           end;
       end;
       end;
 
 

+ 1 - 1
compiler/mips/hlcgcpu.pas

@@ -249,7 +249,7 @@ implementation
       list.concat(taicpu.op_reg_ref(A_LW,NR_VMT,href));
       list.concat(taicpu.op_reg_ref(A_LW,NR_VMT,href));
 
 
       if (procdef.extnumber=$ffff) then
       if (procdef.extnumber=$ffff) then
-        Internalerror(200006139);
+        Internalerror(2000061303);
 
 
       { TODO: case of large VMT is not handled }
       { TODO: case of large VMT is not handled }
       { We have no reason not to use $t9 even in non-PIC mode. }
       { We have no reason not to use $t9 even in non-PIC mode. }

+ 1 - 1
compiler/mips/ncpucnv.pas

@@ -185,7 +185,7 @@ begin
         end;
         end;
       end;
       end;
       else
       else
-        internalerror(200410031);
+        internalerror(2004100306);
     end;
     end;
   end;
   end;
 end;
 end;

+ 1 - 1
compiler/mips/ncpuinln.pas

@@ -102,7 +102,7 @@ begin
     s64real:
     s64real:
       current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_ABS_d, location.Register, left.location.Register));
       current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_ABS_d, location.Register, left.location.Register));
     else
     else
-      internalerror(200410031);
+      internalerror(2004100305);
   end;
   end;
 end;
 end;
 
 

+ 3 - 3
compiler/mips/racpugas.pas

@@ -251,7 +251,7 @@ Interface
                   OPR_LOCAL:
                   OPR_LOCAL:
                     inc(oper.opr.localsymofs,l);
                     inc(oper.opr.localsymofs,l);
                 else
                 else
-                  InternalError(12345);
+                  InternalError(2020100817);
                 end;
                 end;
                 GotPlus:=(prevasmtoken=AS_PLUS) or
                 GotPlus:=(prevasmtoken=AS_PLUS) or
                          (prevasmtoken=AS_MINUS);
                          (prevasmtoken=AS_MINUS);
@@ -291,7 +291,7 @@ Interface
                   OPR_REFERENCE :
                   OPR_REFERENCE :
                     inc(oper.opr.ref.offset,l);
                     inc(oper.opr.ref.offset,l);
                   else
                   else
-                    internalerror(200309202);
+                    internalerror(2003092006);
                 end;
                 end;
                 Consume(AS_RPAREN);
                 Consume(AS_RPAREN);
                 gotplus:=false;
                 gotplus:=false;
@@ -380,7 +380,7 @@ Interface
                          OPR_REFERENCE :
                          OPR_REFERENCE :
                            inc(oper.opr.ref.offset,l);
                            inc(oper.opr.ref.offset,l);
                          else
                          else
-                           internalerror(200309202);
+                           internalerror(2003092007);
                        end;
                        end;
                      end
                      end
                  end;
                  end;

+ 1 - 1
compiler/nadd.pas

@@ -2891,7 +2891,7 @@ implementation
                     { find proc field in methodpointer record }
                     { find proc field in methodpointer record }
                     hsym:=tfieldvarsym(trecorddef(methodpointertype).symtable.Find('proc'));
                     hsym:=tfieldvarsym(trecorddef(methodpointertype).symtable.Find('proc'));
                     if not assigned(hsym) then
                     if not assigned(hsym) then
-                      internalerror(200412043);
+                      internalerror(2004120405);
                     { Compare tmehodpointer(left).proc }
                     { Compare tmehodpointer(left).proc }
                     right:=csubscriptnode.create(
                     right:=csubscriptnode.create(
                                  hsym,
                                  hsym,

+ 1 - 1
compiler/nbas.pas

@@ -1666,7 +1666,7 @@ implementation
       begin
       begin
         temp:=ttempcreatenode(nodeppuidxget(tempidx));
         temp:=ttempcreatenode(nodeppuidxget(tempidx));
         if temp.nodetype<>tempcreaten then
         if temp.nodetype<>tempcreaten then
-          internalerror(200311075);
+          internalerror(2003110701);
         tempinfo:=temp.tempinfo;
         tempinfo:=temp.tempinfo;
       end;
       end;
 
 

+ 2 - 2
compiler/ncgadd.pas

@@ -210,7 +210,7 @@ interface
             equaln:   result:=OC_EQ;
             equaln:   result:=OC_EQ;
             unequaln: result:=OC_NE;
             unequaln: result:=OC_NE;
           else
           else
-            internalerror(2011010412);
+            internalerror(2011010403);
           end
           end
       end;
       end;
 
 
@@ -607,7 +607,7 @@ interface
                 end;
                 end;
             end;
             end;
           else
           else
-            internalerror(2002072803);
+            internalerror(2002072804);
         end;
         end;
 {$endif cpu64bitalu or cpuhighleveltarget}
 {$endif cpu64bitalu or cpuhighleveltarget}
 
 

+ 1 - 1
compiler/ncgcal.pas

@@ -504,7 +504,7 @@ implementation
           else
           else
             begin
             begin
               reference_reset(tmpref,0,[]);
               reference_reset(tmpref,0,[]);
-              internalerror(2016090202);
+              internalerror(2016090205);
             end;
             end;
         end;
         end;
       end;
       end;

+ 1 - 1
compiler/ncgcon.pas

@@ -312,7 +312,7 @@ implementation
                                { because we hardcode the offset below due to it
                                { because we hardcode the offset below due to it
                                  not being stored in the hashset, check here }
                                  not being stored in the hashset, check here }
                                if lastlabel.ofs<>datatcb.get_string_symofs(tstringdef(resultdef).stringtype,winlikewidestring) then
                                if lastlabel.ofs<>datatcb.get_string_symofs(tstringdef(resultdef).stringtype,winlikewidestring) then
-                                 internalerror(2012051704);
+                                 internalerror(2012051702);
                              end;
                              end;
                            { no contents of the datatcb itself to concatenate,
                            { no contents of the datatcb itself to concatenate,
                              as we will just return the address of the emitted
                              as we will just return the address of the emitted

+ 12 - 12
compiler/ncginl.pas

@@ -425,7 +425,7 @@ implementation
                    addvalue:=tpointerdef(tcallparanode(left).left.resultdef).pointeddef.size;
                    addvalue:=tpointerdef(tcallparanode(left).left.resultdef).pointeddef.size;
                end;
                end;
            else
            else
-               internalerror(10081);
+               internalerror(2020100814);
           end;
           end;
           { second_ argument specified?, must be a s32bit in register }
           { second_ argument specified?, must be a s32bit in register }
           if assigned(tcallparanode(left).right) then
           if assigned(tcallparanode(left).right) then
@@ -678,27 +678,27 @@ implementation
 }
 }
     procedure tcginlinenode.second_pi;
     procedure tcginlinenode.second_pi;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071801);
       end;
       end;
 
 
     procedure tcginlinenode.second_arctan_real;
     procedure tcginlinenode.second_arctan_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071802);
       end;
       end;
 
 
     procedure tcginlinenode.second_abs_real;
     procedure tcginlinenode.second_abs_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071803);
       end;
       end;
 
 
     procedure tcginlinenode.second_round_real;
     procedure tcginlinenode.second_round_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071804);
       end;
       end;
 
 
     procedure tcginlinenode.second_trunc_real;
     procedure tcginlinenode.second_trunc_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071805);
       end;
       end;
 
 
     procedure tcginlinenode.second_int_real;
     procedure tcginlinenode.second_int_real;
@@ -708,27 +708,27 @@ implementation
 
 
     procedure tcginlinenode.second_sqr_real;
     procedure tcginlinenode.second_sqr_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071806);
       end;
       end;
 
 
     procedure tcginlinenode.second_sqrt_real;
     procedure tcginlinenode.second_sqrt_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071807);
       end;
       end;
 
 
     procedure tcginlinenode.second_ln_real;
     procedure tcginlinenode.second_ln_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071808);
       end;
       end;
 
 
     procedure tcginlinenode.second_cos_real;
     procedure tcginlinenode.second_cos_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071809);
       end;
       end;
 
 
     procedure tcginlinenode.second_sin_real;
     procedure tcginlinenode.second_sin_real;
       begin
       begin
-        internalerror(20020718);
+        internalerror(2002071810);
       end;
       end;
 
 
 
 
@@ -966,7 +966,7 @@ implementation
 
 
     procedure tcginlinenode.second_popcnt;
     procedure tcginlinenode.second_popcnt;
       begin
       begin
-        internalerror(2012082601);
+        internalerror(2012082602);
       end;
       end;
 
 
 
 

+ 2 - 2
compiler/ncnv.pas

@@ -1184,7 +1184,7 @@ implementation
         with tarraydef(resultdef) do
         with tarraydef(resultdef) do
           begin
           begin
             if highrange<lowrange then
             if highrange<lowrange then
-             internalerror(200501051);
+             internalerror(2005010502);
             arrsize := highrange-lowrange+1;
             arrsize := highrange-lowrange+1;
           end;
           end;
         if (left.nodetype = stringconstn) and
         if (left.nodetype = stringconstn) and
@@ -2042,7 +2042,7 @@ implementation
           begin
           begin
             { arr[i] := param_i }
             { arr[i] := param_i }
             if not assigned(elemnode.left) then
             if not assigned(elemnode.left) then
-              internalerror(2017050101);
+              internalerror(2017050103);
             addstatement(assstatement,
             addstatement(assstatement,
               cassignmentnode.create(
               cassignmentnode.create(
                 cvecnode.create(
                 cvecnode.create(

+ 1 - 1
compiler/ngenutil.pas

@@ -197,7 +197,7 @@ implementation
                   nil));
                   nil));
             end
             end
           else
           else
-            internalerror(200305108);
+            internalerror(2003051002);
         end
         end
       else
       else
         if is_object(current_structdef) then
         if is_object(current_structdef) then

+ 3 - 3
compiler/ngtcon.pas

@@ -1321,7 +1321,7 @@ function get_next_varsym(def: tabstractrecorddef; const SymList:TFPHashObjectLis
                       begin
                       begin
                         inserttypeconv(n,cunicodestringtype);
                         inserttypeconv(n,cunicodestringtype);
                         if n.nodetype<>stringconstn then
                         if n.nodetype<>stringconstn then
-                          internalerror(2010033003);
+                          internalerror(2010033009);
                         ca:=pointer(pcompilerwidestring(tstringconstnode(n).value_str)^.data)
                         ca:=pointer(pcompilerwidestring(tstringconstnode(n).value_str)^.data)
                       end;
                       end;
                     else
                     else
@@ -1357,13 +1357,13 @@ function get_next_varsym(def: tabstractrecorddef; const SymList:TFPHashObjectLis
                       begin
                       begin
                         inserttypeconv(n,cansichartype);
                         inserttypeconv(n,cansichartype);
                         if not is_constcharnode(n) then
                         if not is_constcharnode(n) then
-                          internalerror(2010033001);
+                          internalerror(2010033006);
                         ch[0]:=chr(tordconstnode(n).value.uvalue and $ff);
                         ch[0]:=chr(tordconstnode(n).value.uvalue and $ff);
                       end;
                       end;
                     2:
                     2:
                       widechar(ch):=widechar(tordconstnode(n).value.uvalue and $ffff);
                       widechar(ch):=widechar(tordconstnode(n).value.uvalue and $ffff);
                     else
                     else
-                      internalerror(2010033002);
+                      internalerror(2010033008);
                   end;
                   end;
                   ca:=@ch;
                   ca:=@ch;
                   len:=1;
                   len:=1;

+ 14 - 14
compiler/ninl.pas

@@ -486,7 +486,7 @@ implementation
         def : tdef;
         def : tdef;
       begin
       begin
         if not assigned(left) or (left.nodetype<>typen) then
         if not assigned(left) or (left.nodetype<>typen) then
-          internalerror(2012032101);
+          internalerror(2012032102);
         def:=ttypenode(left).typedef;
         def:=ttypenode(left).typedef;
         result:=nil;
         result:=nil;
         case def.typ of
         case def.typ of
@@ -608,7 +608,7 @@ implementation
               in_rewrite_typedfile_name:
               in_rewrite_typedfile_name:
                 result := ccallnode.createintern('fpc_rewrite_typed_name_iso',left);
                 result := ccallnode.createintern('fpc_rewrite_typed_name_iso',left);
               else
               else
-                internalerror(2016101501);
+                internalerror(2016101502);
             end;
             end;
           end
           end
         else
         else
@@ -1127,7 +1127,7 @@ implementation
             in_writeln_x:
             in_writeln_x:
               name:='fpc_writeln_end';
               name:='fpc_writeln_end';
             else
             else
-              internalerror(2019050516);
+              internalerror(2019050501);
           end;
           end;
           addstatement(Tstatementnode(newstatement),ccallnode.createintern(name,filepara.getcopy));
           addstatement(Tstatementnode(newstatement),ccallnode.createintern(name,filepara.getcopy));
         end;
         end;
@@ -1500,7 +1500,7 @@ implementation
             s16bit: exit('smallint');
             s16bit: exit('smallint');
             u16bit: exit('word');
             u16bit: exit('word');
             else
             else
-              internalerror(2013032604);
+              internalerror(2013032606);
           end;
           end;
         end
         end
       else
       else
@@ -1509,10 +1509,10 @@ implementation
             s64bit,s32bit,s16bit,s8bit: exit('sint');
             s64bit,s32bit,s16bit,s8bit: exit('sint');
             u64bit,u32bit,u16bit,u8bit: exit('uint');
             u64bit,u32bit,u16bit,u8bit: exit('uint');
             else
             else
-              internalerror(2013032604);
+              internalerror(2013032607);
           end;
           end;
         end;
         end;
-      internalerror(2013032605);
+      internalerror(2013032608);
     end;
     end;
 
 
 
 
@@ -2082,7 +2082,7 @@ implementation
                       8:
                       8:
                         vl:=vl and byte($3f);
                         vl:=vl and byte($3f);
                       else
                       else
-                        internalerror(2013122302);
+                        internalerror(2013122303);
                     end;
                     end;
                   if (tcallparanode(tcallparanode(left).right).left.nodetype=ordconstn) then
                   if (tcallparanode(tcallparanode(left).right).left.nodetype=ordconstn) then
                     begin
                     begin
@@ -2180,7 +2180,7 @@ implementation
                       8:
                       8:
                         vl:=vl and byte($3f);
                         vl:=vl and byte($3f);
                       else
                       else
-                        internalerror(2013122302);
+                        internalerror(2013122304);
                     end;
                     end;
                   if (tcallparanode(tcallparanode(left).right).left.nodetype=ordconstn) then
                   if (tcallparanode(tcallparanode(left).right).left.nodetype=ordconstn) then
                     begin
                     begin
@@ -2795,7 +2795,7 @@ implementation
                         8:
                         8:
                           result:=cordconstnode.create(BsrQWord(QWord(tordconstnode(left).value.uvalue)),resultdef,false);
                           result:=cordconstnode.create(BsrQWord(QWord(tordconstnode(left).value.uvalue)),resultdef,false);
                         else
                         else
-                          internalerror(2017042401);
+                          internalerror(2017042402);
                       end;
                       end;
                     end;
                     end;
                 end;
                 end;
@@ -4109,7 +4109,7 @@ implementation
             end;
             end;
 
 
           in_slice_x:
           in_slice_x:
-            internalerror(2005101501);
+            internalerror(2005101502);
 
 
           in_ord_x,
           in_ord_x,
           in_chr_byte:
           in_chr_byte:
@@ -4119,7 +4119,7 @@ implementation
             end;
             end;
 
 
           in_ofs_x :
           in_ofs_x :
-            internalerror(2000101001);
+            internalerror(2000101002);
 
 
           in_seg_x :
           in_seg_x :
             begin
             begin
@@ -4139,7 +4139,7 @@ implementation
           in_writeln_x :
           in_writeln_x :
             begin
             begin
               { should be handled by pass_typecheck }
               { should be handled by pass_typecheck }
-              internalerror(200108234);
+              internalerror(2001082302);
             end;
             end;
          in_get_frame:
          in_get_frame:
             begin
             begin
@@ -4777,7 +4777,7 @@ implementation
                   lowppn:=tcallparanode(tcallparanode(paras).right).left.getcopy;
                   lowppn:=tcallparanode(tcallparanode(paras).right).left.getcopy;
                 end;
                 end;
               else
               else
-                internalerror(2012100701);
+                internalerror(2012100703);
             end;
             end;
 
 
             if is_open_array(paradef) then
             if is_open_array(paradef) then
@@ -4789,7 +4789,7 @@ implementation
                 arrayppn:=ctypeconvnode.create_internal(ppn.left,voidpointertype);
                 arrayppn:=ctypeconvnode.create_internal(ppn.left,voidpointertype);
               end
               end
             else
             else
-              internalerror(2012100702);
+              internalerror(2012100704);
 
 
             rttippn:=caddrnode.create_internal(crttinode.create(tstoreddef(resultdef),initrtti,rdt_normal));
             rttippn:=caddrnode.create_internal(crttinode.create(tstoreddef(resultdef),initrtti,rdt_normal));
 
 

+ 2 - 2
compiler/nmat.pas

@@ -460,7 +460,7 @@ implementation
         if result.resultdef.typ<>orddef then
         if result.resultdef.typ<>orddef then
           internalerror(2013031701);
           internalerror(2013031701);
         if resultdef.typ<>orddef then
         if resultdef.typ<>orddef then
-          internalerror(2013031701);
+          internalerror(2013031702);
         if torddef(result.resultdef).ordtype <> torddef(resultdef).ordtype then
         if torddef(result.resultdef).ordtype <> torddef(resultdef).ordtype then
           inserttypeconv(result,resultdef);
           inserttypeconv(result,resultdef);
       end;
       end;
@@ -833,7 +833,7 @@ implementation
 {$elseif defined(cpu16bitalu) or defined(cpu8bitalu)}
 {$elseif defined(cpu16bitalu) or defined(cpu8bitalu)}
                      inserttypeconv(left,get_common_intdef(torddef(left.resultdef),torddef(uinttype),true));
                      inserttypeconv(left,get_common_intdef(torddef(left.resultdef),torddef(uinttype),true));
 {$else}
 {$else}
-                     internalerror(2013031301);
+                     internalerror(2013031302);
 {$endif}
 {$endif}
                    end
                    end
                end;
                end;

+ 10 - 10
compiler/ogbase.pas

@@ -1492,7 +1492,7 @@ implementation
     function TObjData.symboldefine(const aname:string;abind:TAsmsymbind;atyp:Tasmsymtype):TObjSymbol;
     function TObjData.symboldefine(const aname:string;abind:TAsmsymbind;atyp:Tasmsymtype):TObjSymbol;
       begin
       begin
         if not assigned(CurrObjSec) then
         if not assigned(CurrObjSec) then
-          internalerror(200603051);
+          internalerror(2006030504);
         result:=CreateSymbol(aname);
         result:=CreateSymbol(aname);
         result.SetAddress(CurrPass,CurrObjSec,abind,atyp);
         result.SetAddress(CurrPass,CurrObjSec,abind,atyp);
       end;
       end;
@@ -1744,7 +1744,7 @@ implementation
             if (oso_data in sec.SecOptions) then
             if (oso_data in sec.SecOptions) then
               begin
               begin
                 if sec.Data=nil then
                 if sec.Data=nil then
-                  internalerror(200403073);
+                  internalerror(2004030707);
                 FWriter.writezeros(sec.dataalignbytes);
                 FWriter.writezeros(sec.dataalignbytes);
                 if sec.Datapos<>FWriter.ObjSize then
                 if sec.Datapos<>FWriter.ObjSize then
                   internalerror(200604031);
                   internalerror(200604031);
@@ -2259,7 +2259,7 @@ implementation
       begin
       begin
         objsym:=TObjSymbol(internalObjData.ObjSymbolList.Find(aname));
         objsym:=TObjSymbol(internalObjData.ObjSymbolList.Find(aname));
         if (objsym=nil) or (objsym.ObjSection.ObjData<>internalObjData) then
         if (objsym=nil) or (objsym.ObjSection.ObjData<>internalObjData) then
-          internalerror(200603041);
+          internalerror(2006030403);
         exesym:=TExeSymbol(ExeSymbolList.Find(aname));
         exesym:=TExeSymbol(ExeSymbolList.Find(aname));
         if not assigned(exesym) then
         if not assigned(exesym) then
           internalerror(201206301);
           internalerror(201206301);
@@ -2385,7 +2385,7 @@ implementation
         if indexpos=MAXVAL then
         if indexpos=MAXVAL then
           begin
           begin
             Comment(V_Error,'Too many values '+avalue);
             Comment(V_Error,'Too many values '+avalue);
-            internalerror(200602254);
+            internalerror(2006022505);
           end;
           end;
         len:=bytesize*indexpos;
         len:=bytesize*indexpos;
         inc(Fvaluesnr);
         inc(Fvaluesnr);
@@ -3466,7 +3466,7 @@ implementation
               else if assigned(refgrp) then
               else if assigned(refgrp) then
                 exemap.Add('  References '+refgrp.Name)
                 exemap.Add('  References '+refgrp.Name)
               else
               else
-                internalerror(200603316);
+                internalerror(2006033111);
             end;
             end;
           if assigned(refobjsec) then
           if assigned(refobjsec) then
             AddToObjSectionWorkList(refobjsec);
             AddToObjSectionWorkList(refobjsec);
@@ -3533,7 +3533,7 @@ implementation
                       if not assigned(vtableexesym) then
                       if not assigned(vtableexesym) then
                         internalerror(200603315);
                         internalerror(200603315);
                       if not assigned(vtableexesym.vtable) then
                       if not assigned(vtableexesym.vtable) then
-                        internalerror(200603316);
+                        internalerror(2006033112);
                       DoVTableRef(vtableexesym.vtable,vtableidx);
                       DoVTableRef(vtableexesym.vtable,vtableidx);
                     end;
                     end;
                 end;
                 end;
@@ -3631,7 +3631,7 @@ implementation
                   internalerror(200603301);
                   internalerror(200603301);
                 if (objsec.ObjRelocations.Count>0) and
                 if (objsec.ObjRelocations.Count>0) and
                    not assigned(objsec.data) then
                    not assigned(objsec.data) then
-                  internalerror(200205183);
+                  internalerror(2002051801);
                 DoRelocationFixup(objsec);
                 DoRelocationFixup(objsec);
                 {for size = 0 data is not valid PM }
                 {for size = 0 data is not valid PM }
                 if assigned(objsec.data) and (objsec.data.size<>objsec.size) then
                 if assigned(objsec.data) and (objsec.data.size<>objsec.size) then
@@ -3685,7 +3685,7 @@ implementation
             if oso_data in exesec.SecOptions then
             if oso_data in exesec.SecOptions then
               begin
               begin
                 if exesec.DataPos<FWriter.Size then
                 if exesec.DataPos<FWriter.Size then
-                  InternalError(2012103001);
+                  InternalError(2012103002);
                 FWriter.Writezeros(exesec.DataPos-FWriter.Size);
                 FWriter.Writezeros(exesec.DataPos-FWriter.Size);
                 for i:=0 to exesec.ObjSectionList.Count-1 do
                 for i:=0 to exesec.ObjSectionList.Count-1 do
                   begin
                   begin
@@ -3693,13 +3693,13 @@ implementation
                     if oso_data in objsec.secoptions then
                     if oso_data in objsec.secoptions then
                       begin
                       begin
                         if not assigned(objsec.data) then
                         if not assigned(objsec.data) then
-                          internalerror(200603042);
+                          internalerror(2006030404);
                         dpos:=objsec.MemPos-exesec.MemPos+exesec.DataPos;
                         dpos:=objsec.MemPos-exesec.MemPos+exesec.DataPos;
                         pad:=dpos-FWriter.Size;
                         pad:=dpos-FWriter.Size;
                         { objsection must be within SecAlign bytes from the previous one }
                         { objsection must be within SecAlign bytes from the previous one }
                         if (dpos<FWriter.Size) or
                         if (dpos<FWriter.Size) or
                           (pad>=max(objsec.SecAlign,1)) then
                           (pad>=max(objsec.SecAlign,1)) then
-                          internalerror(200602251);
+                          internalerror(2006022503);
                         FWriter.writeZeros(pad);
                         FWriter.writeZeros(pad);
                         FWriter.writearray(objsec.data);
                         FWriter.writearray(objsec.data);
                       end;
                       end;

+ 5 - 5
compiler/ogcoff.pas

@@ -1097,7 +1097,7 @@ const pemagic : array[0..3] of byte = (
                     address:=(address and $ff000000) or ((relocval shr 1) and $ffffff) or ((relocval and 1) shl 24);
                     address:=(address and $ff000000) or ((relocval shr 1) and $ffffff) or ((relocval and 1) shl 24);
                     relocval:=relocval shr 25;
                     relocval:=relocval shr 25;
                     if (relocval<>$3f) and (relocval<>0) then
                     if (relocval<>$3f) and (relocval<>0) then
-                      internalerror(200606085);  { offset overflow }
+                      internalerror(2006060801);  { offset overflow }
                   end;
                   end;
 {$endif arm}
 {$endif arm}
 {$ifdef aarch64}
 {$ifdef aarch64}
@@ -1287,7 +1287,7 @@ const pemagic : array[0..3] of byte = (
         symaddr : aword;
         symaddr : aword;
       begin
       begin
         if CurrObjSec=nil then
         if CurrObjSec=nil then
-          internalerror(200403072);
+          internalerror(2004030701);
         if assigned(p) then
         if assigned(p) then
           begin
           begin
             { current address }
             { current address }
@@ -2521,7 +2521,7 @@ const pemagic : array[0..3] of byte = (
         exesec : TExeSection;
         exesec : TExeSection;
       begin
       begin
         if not assigned(texesymbol(p).objsymbol) then
         if not assigned(texesymbol(p).objsymbol) then
-          internalerror(200603053);
+          internalerror(2006030505);
         with texesymbol(p).objsymbol do
         with texesymbol(p).objsymbol do
           begin
           begin
             if assigned(objsection) then
             if assigned(objsection) then
@@ -2789,7 +2789,7 @@ const pemagic : array[0..3] of byte = (
         bssExeSec:=FindExeSection('.bss');
         bssExeSec:=FindExeSection('.bss');
         if not assigned(TextExeSec) or
         if not assigned(TextExeSec) or
            not assigned(DataExeSec) then
            not assigned(DataExeSec) then
-          internalerror(200602231);
+          internalerror(2006022302);
         { do we need to write symbols? }
         { do we need to write symbols? }
         hassymbols:=(ExeWriteMode=ewm_dbgonly) or
         hassymbols:=(ExeWriteMode=ewm_dbgonly) or
                     (
                     (
@@ -3359,7 +3359,7 @@ const pemagic : array[0..3] of byte = (
           begin
           begin
             exesec:=FindExeSection('.reloc');
             exesec:=FindExeSection('.reloc');
             if exesec=nil then
             if exesec=nil then
-              InternalError(2012072401);
+              InternalError(2012072403);
             exesec.Disabled:=false;
             exesec.Disabled:=false;
           end;
           end;
         inherited;
         inherited;

+ 14 - 14
compiler/ogomf.pas

@@ -907,7 +907,7 @@ implementation
             else if typ in [RELOC_RELATIVE16,RELOC_RELATIVE32,RELOC_SEGREL] then
             else if typ in [RELOC_RELATIVE16,RELOC_RELATIVE32,RELOC_SEGREL] then
               FOmfFixup.Mode:=fmSelfRelative
               FOmfFixup.Mode:=fmSelfRelative
             else
             else
-              internalerror(2015041401);
+              internalerror(2015041408);
             if typ in [RELOC_ABSOLUTE16,RELOC_ABSOLUTE32,RELOC_RELATIVE16,RELOC_RELATIVE32] then
             if typ in [RELOC_ABSOLUTE16,RELOC_ABSOLUTE32,RELOC_RELATIVE16,RELOC_RELATIVE32] then
               begin
               begin
                 FOmfFixup.TargetMethod:=ftmSegmentIndexNoDisp;
                 FOmfFixup.TargetMethod:=ftmSegmentIndexNoDisp;
@@ -945,7 +945,7 @@ implementation
             else if typ in [RELOC_SEG,RELOC_SEGREL] then
             else if typ in [RELOC_SEG,RELOC_SEGREL] then
               FOmfFixup.LocationType:=fltBase
               FOmfFixup.LocationType:=fltBase
             else
             else
-              internalerror(2015041501);
+              internalerror(2015041505);
             FOmfFixup.FrameDeterminedByThread:=False;
             FOmfFixup.FrameDeterminedByThread:=False;
             FOmfFixup.TargetDeterminedByThread:=False;
             FOmfFixup.TargetDeterminedByThread:=False;
             if typ in [RELOC_ABSOLUTE16,RELOC_ABSOLUTE32,RELOC_SEG] then
             if typ in [RELOC_ABSOLUTE16,RELOC_ABSOLUTE32,RELOC_SEG] then
@@ -953,7 +953,7 @@ implementation
             else if typ in [RELOC_RELATIVE16,RELOC_RELATIVE32,RELOC_SEGREL] then
             else if typ in [RELOC_RELATIVE16,RELOC_RELATIVE32,RELOC_SEGREL] then
               FOmfFixup.Mode:=fmSelfRelative
               FOmfFixup.Mode:=fmSelfRelative
             else
             else
-              internalerror(2015041401);
+              internalerror(2015041409);
             FOmfFixup.TargetMethod:=ftmExternalIndexNoDisp;
             FOmfFixup.TargetMethod:=ftmExternalIndexNoDisp;
             FOmfFixup.TargetDatum:=symbol.symidx;
             FOmfFixup.TargetDatum:=symbol.symidx;
             FOmfFixup.FrameMethod:=ffmTarget;
             FOmfFixup.FrameMethod:=ffmTarget;
@@ -968,7 +968,7 @@ implementation
             else if typ in [RELOC_SEG,RELOC_SEGREL] then
             else if typ in [RELOC_SEG,RELOC_SEGREL] then
               FOmfFixup.LocationType:=fltBase
               FOmfFixup.LocationType:=fltBase
             else
             else
-              internalerror(2015041501);
+              internalerror(2015041506);
             FOmfFixup.FrameDeterminedByThread:=False;
             FOmfFixup.FrameDeterminedByThread:=False;
             FOmfFixup.TargetDeterminedByThread:=False;
             FOmfFixup.TargetDeterminedByThread:=False;
             if typ in [RELOC_ABSOLUTE16,RELOC_ABSOLUTE32,RELOC_SEG] then
             if typ in [RELOC_ABSOLUTE16,RELOC_ABSOLUTE32,RELOC_SEG] then
@@ -976,7 +976,7 @@ implementation
             else if typ in [RELOC_RELATIVE16,RELOC_RELATIVE32,RELOC_SEGREL] then
             else if typ in [RELOC_RELATIVE16,RELOC_RELATIVE32,RELOC_SEGREL] then
               FOmfFixup.Mode:=fmSelfRelative
               FOmfFixup.Mode:=fmSelfRelative
             else
             else
-              internalerror(2015041401);
+              internalerror(2015041410);
             FOmfFixup.FrameMethod:=ffmTarget;
             FOmfFixup.FrameMethod:=ffmTarget;
             FOmfFixup.TargetMethod:=ftmGroupIndexNoDisp;
             FOmfFixup.TargetMethod:=ftmGroupIndexNoDisp;
             FOmfFixup.TargetDatum:=group.index;
             FOmfFixup.TargetDatum:=group.index;
@@ -1190,14 +1190,14 @@ implementation
         else if Reloctype=RELOC_FARPTR48 then
         else if Reloctype=RELOC_FARPTR48 then
           begin
           begin
             if len<>6 then
             if len<>6 then
-              internalerror(2015041502);
+              internalerror(2015041507);
             writeReloc(Data,4,p,RELOC_ABSOLUTE32);
             writeReloc(Data,4,p,RELOC_ABSOLUTE32);
             writeReloc(0,2,p,RELOC_SEG);
             writeReloc(0,2,p,RELOC_SEG);
             exit;
             exit;
           end;
           end;
 
 
         if CurrObjSec=nil then
         if CurrObjSec=nil then
-          internalerror(200403072);
+          internalerror(2004030704);
         objreloc:=nil;
         objreloc:=nil;
         if Reloctype in [RELOC_FARDATASEG,RELOC_FARDATASEGREL] then
         if Reloctype in [RELOC_FARDATASEG,RELOC_FARDATASEGREL] then
           begin
           begin
@@ -1342,7 +1342,7 @@ implementation
         if (oso_data in sec.SecOptions) then
         if (oso_data in sec.SecOptions) then
           begin
           begin
             if sec.Data=nil then
             if sec.Data=nil then
-              internalerror(200403073);
+              internalerror(2004030705);
             for I:=0 to sec.ObjRelocations.Count-1 do
             for I:=0 to sec.ObjRelocations.Count-1 do
               TOmfRelocation(sec.ObjRelocations[I]).BuildOmfFixup;
               TOmfRelocation(sec.ObjRelocations[I]).BuildOmfFixup;
             SegIndex:=Segments.FindIndexOf(sec.Name);
             SegIndex:=Segments.FindIndexOf(sec.Name);
@@ -1426,7 +1426,7 @@ implementation
         if (oso_data in sec.SecOptions) then
         if (oso_data in sec.SecOptions) then
           begin
           begin
             if sec.Data=nil then
             if sec.Data=nil then
-              internalerror(200403073);
+              internalerror(2004030706);
             if sec.LinNumEntries.Count=0 then
             if sec.LinNumEntries.Count=0 then
               exit;
               exit;
             SegIndex:=Segments.FindIndexOf(sec.Name);
             SegIndex:=Segments.FindIndexOf(sec.Name);
@@ -2103,7 +2103,7 @@ implementation
               if Is32Bit then
               if Is32Bit then
                 begin
                 begin
                   if (NextOfs+3)>=RawRec.RecordLength then
                   if (NextOfs+3)>=RawRec.RecordLength then
-                    internalerror(2015040504);
+                    internalerror(2015040512);
                   EnumeratedDataOffset := RawRec.RawData[NextOfs]+
                   EnumeratedDataOffset := RawRec.RawData[NextOfs]+
                                          (RawRec.RawData[NextOfs+1] shl 8)+
                                          (RawRec.RawData[NextOfs+1] shl 8)+
                                          (RawRec.RawData[NextOfs+2] shl 16)+
                                          (RawRec.RawData[NextOfs+2] shl 16)+
@@ -2113,7 +2113,7 @@ implementation
               else
               else
                 begin
                 begin
                   if (NextOfs+1)>=RawRec.RecordLength then
                   if (NextOfs+1)>=RawRec.RecordLength then
-                    internalerror(2015040504);
+                    internalerror(2015040513);
                   EnumeratedDataOffset := RawRec.RawData[NextOfs]+
                   EnumeratedDataOffset := RawRec.RawData[NextOfs]+
                                          (RawRec.RawData[NextOfs+1] shl 8);
                                          (RawRec.RawData[NextOfs+1] shl 8);
                   Inc(NextOfs,2);
                   Inc(NextOfs,2);
@@ -2161,7 +2161,7 @@ implementation
               FixupRawRec:=RawRec;
               FixupRawRec:=RawRec;
             end;
             end;
           else
           else
-            internalerror(2015040301);
+            internalerror(2015040316);
         end;
         end;
 
 
         { also read all the FIXUPP records that may follow;                     }
         { also read all the FIXUPP records that may follow;                     }
@@ -2912,7 +2912,7 @@ implementation
         i: Integer;
         i: Integer;
       begin
       begin
         if SegmentList.Count=0 then
         if SegmentList.Count=0 then
-          internalerror(2015082201);
+          internalerror(2015082202);
         for i:=0 to SegmentList.Count-1 do
         for i:=0 to SegmentList.Count-1 do
           begin
           begin
             UniSeg:=TMZExeUnifiedLogicalSegment(SegmentList[i]);
             UniSeg:=TMZExeUnifiedLogicalSegment(SegmentList[i]);
@@ -4165,7 +4165,7 @@ cleanup:
     function TNewExeEntryTable.GetItems(i: Integer): TNewExeEntryPoint;
     function TNewExeEntryTable.GetItems(i: Integer): TNewExeEntryPoint;
       begin
       begin
         if (i<1) or (i>Length(FItems)) then
         if (i<1) or (i>Length(FItems)) then
-          internalerror(2019081002);
+          internalerror(2019081011);
         Result:=FItems[i-1];
         Result:=FItems[i-1];
       end;
       end;
 
 

+ 1 - 1
compiler/ogrel.pas

@@ -213,7 +213,7 @@ implementation
               RelFlags:=[];
               RelFlags:=[];
             end;
             end;
           else
           else
-            internalerror(2020050601);
+            internalerror(2020050613);
         end;
         end;
       end;
       end;
 
 

+ 30 - 30
compiler/omfbase.pas

@@ -1432,13 +1432,13 @@ implementation
     begin
     begin
       Result:=Offset+1;
       Result:=Offset+1;
       if result>RecordLength then
       if result>RecordLength then
-        internalerror(2015033103);
+        internalerror(2015033108);
       IndexedRef:=RawData[Offset];
       IndexedRef:=RawData[Offset];
       if IndexedRef<=$7f then
       if IndexedRef<=$7f then
         exit;
         exit;
       Result:=Offset+2;
       Result:=Offset+2;
       if result>RecordLength then
       if result>RecordLength then
-        internalerror(2015033103);
+        internalerror(2015033109);
       IndexedRef:=((IndexedRef and $7f) shl 8)+RawData[Offset+1];
       IndexedRef:=((IndexedRef and $7f) shl 8)+RawData[Offset+1];
     end;
     end;
 
 
@@ -1450,14 +1450,14 @@ implementation
         begin
         begin
           Result:=Offset+1;
           Result:=Offset+1;
           if Result>High(RawData) then
           if Result>High(RawData) then
-            internalerror(2015033102);
+            internalerror(2015033106);
           RawData[Offset]:=IndexedRef;
           RawData[Offset]:=IndexedRef;
         end
         end
       else
       else
         begin
         begin
           Result:=Offset+2;
           Result:=Offset+2;
           if Result>High(RawData) then
           if Result>High(RawData) then
-            internalerror(2015033102);
+            internalerror(2015033107);
           RawData[Offset]:=$80+(IndexedRef shr 8);
           RawData[Offset]:=$80+(IndexedRef shr 8);
           RawData[Offset+1]:=Byte(IndexedRef);
           RawData[Offset+1]:=Byte(IndexedRef);
         end;
         end;
@@ -1575,7 +1575,7 @@ implementation
   procedure TOmfRecord_COMENT.DecodeFrom(RawRecord: TOmfRawRecord);
   procedure TOmfRecord_COMENT.DecodeFrom(RawRecord: TOmfRawRecord);
     begin
     begin
       if RawRecord.RecordType<>RT_COMENT then
       if RawRecord.RecordType<>RT_COMENT then
-        internalerror(2015040301);
+        internalerror(2015040304);
       if RawRecord.RecordLength<3 then
       if RawRecord.RecordLength<3 then
         internalerror(2015033104);
         internalerror(2015033104);
       CommentType:=RawRecord.RawData[0];
       CommentType:=RawRecord.RawData[0];
@@ -1756,7 +1756,7 @@ implementation
       Name: string;
       Name: string;
     begin
     begin
       if RawRecord.RecordType<>RT_LNAMES then
       if RawRecord.RecordType<>RT_LNAMES then
-        internalerror(2015040301);
+        internalerror(2015040308);
       NextOfs:=0;
       NextOfs:=0;
       while NextOfs<(RawRecord.RecordLength-1) do
       while NextOfs<(RawRecord.RecordLength-1) do
         begin
         begin
@@ -1802,7 +1802,7 @@ implementation
       MinLen: Integer;
       MinLen: Integer;
     begin
     begin
       if not (RawRecord.RecordType in [RT_SEGDEF,RT_SEGDEF32]) then
       if not (RawRecord.RecordType in [RT_SEGDEF,RT_SEGDEF32]) then
-        internalerror(2015040301);
+        internalerror(2015040309);
       Is32Bit:=RawRecord.RecordType=RT_SEGDEF32;
       Is32Bit:=RawRecord.RecordType=RT_SEGDEF32;
 
 
       MinLen:=7; { b(1)+seglength(2..4)+segnameindex(1..2)+classnameindex(1..2)+overlaynameindex(1..2)+checksum }
       MinLen:=7; { b(1)+seglength(2..4)+segnameindex(1..2)+classnameindex(1..2)+overlaynameindex(1..2)+checksum }
@@ -1820,7 +1820,7 @@ implementation
         begin
         begin
           inc(MinLen,3);
           inc(MinLen,3);
           if RawRecord.RecordLength<MinLen then
           if RawRecord.RecordLength<MinLen then
-            internalerror(2015040305);
+            internalerror(2015040317);
           FrameNumber:=RawRecord.RawData[1]+(RawRecord.RawData[2] shl 8);
           FrameNumber:=RawRecord.RawData[1]+(RawRecord.RawData[2] shl 8);
           Offset:=RawRecord.RawData[3];
           Offset:=RawRecord.RawData[3];
           NextOfs:=4;
           NextOfs:=4;
@@ -1850,7 +1850,7 @@ implementation
             if SegmentLength=0 then
             if SegmentLength=0 then
               SegmentLength:=65536
               SegmentLength:=65536
             else
             else
-              internalerror(2015040306);
+              internalerror(2015040323);
           Inc(NextOfs,2);
           Inc(NextOfs,2);
         end;
         end;
       NextOfs:=RawRecord.ReadIndexedRef(NextOfs,FSegmentNameIndex);
       NextOfs:=RawRecord.ReadIndexedRef(NextOfs,FSegmentNameIndex);
@@ -1922,7 +1922,7 @@ implementation
       Segment: Integer;
       Segment: Integer;
     begin
     begin
       if RawRecord.RecordType<>RT_GRPDEF then
       if RawRecord.RecordType<>RT_GRPDEF then
-        internalerror(2015040301);
+        internalerror(2015040310);
       NextOfs:=RawRecord.ReadIndexedRef(0,FGroupNameIndex);
       NextOfs:=RawRecord.ReadIndexedRef(0,FGroupNameIndex);
       SetLength(FSegmentList,0);
       SetLength(FSegmentList,0);
       while NextOfs<RawRecord.RecordLength-1 do
       while NextOfs<RawRecord.RecordLength-1 do
@@ -1981,7 +1981,7 @@ implementation
       PubName: TOmfPublicNameElement;
       PubName: TOmfPublicNameElement;
     begin
     begin
       if not (RawRecord.RecordType in [RT_PUBDEF,RT_PUBDEF32,RT_LPUBDEF,RT_LPUBDEF32]) then
       if not (RawRecord.RecordType in [RT_PUBDEF,RT_PUBDEF32,RT_LPUBDEF,RT_LPUBDEF32]) then
-        internalerror(2015040301);
+        internalerror(2015040311);
       Is32Bit:=RawRecord.RecordType in [RT_PUBDEF32,RT_LPUBDEF32];
       Is32Bit:=RawRecord.RecordType in [RT_PUBDEF32,RT_LPUBDEF32];
       IsLocal:=RawRecord.RecordType in [RT_LPUBDEF,RT_LPUBDEF32];
       IsLocal:=RawRecord.RecordType in [RT_LPUBDEF,RT_LPUBDEF32];
 
 
@@ -2003,7 +2003,7 @@ implementation
           if Is32Bit then
           if Is32Bit then
             begin
             begin
               if (NextOfs+3)>=RawRecord.RecordLength then
               if (NextOfs+3)>=RawRecord.RecordLength then
-                internalerror(2015041401);
+                internalerror(2015041405);
               PublicOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8)+
               PublicOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8)+
                 (RawRecord.RawData[NextOfs+2] shl 16)+(RawRecord.RawData[NextOfs+3] shl 24);
                 (RawRecord.RawData[NextOfs+2] shl 16)+(RawRecord.RawData[NextOfs+3] shl 24);
               Inc(NextOfs,4);
               Inc(NextOfs,4);
@@ -2011,7 +2011,7 @@ implementation
           else
           else
             begin
             begin
               if (NextOfs+1)>=RawRecord.RecordLength then
               if (NextOfs+1)>=RawRecord.RecordLength then
-                internalerror(2015041401);
+                internalerror(2015041407);
               PublicOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8);
               PublicOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8);
               Inc(NextOfs,2);
               Inc(NextOfs,2);
             end;
             end;
@@ -2129,7 +2129,7 @@ implementation
       ExtName: TOmfExternalNameElement;
       ExtName: TOmfExternalNameElement;
     begin
     begin
       if RawRecord.RecordType<>RT_EXTDEF then
       if RawRecord.RecordType<>RT_EXTDEF then
-        internalerror(2015040301);
+        internalerror(2015040312);
       NextOfs:=0;
       NextOfs:=0;
       while NextOfs<(RawRecord.RecordLength-1) do
       while NextOfs<(RawRecord.RecordLength-1) do
         begin
         begin
@@ -2181,11 +2181,11 @@ implementation
       EndData: Byte;
       EndData: Byte;
     begin
     begin
       if not (RawRecord.RecordType in [RT_MODEND,RT_MODEND32]) then
       if not (RawRecord.RecordType in [RT_MODEND,RT_MODEND32]) then
-        internalerror(2015040301);
+        internalerror(2015040313);
       Is32Bit:=RawRecord.RecordType=RT_MODEND32;
       Is32Bit:=RawRecord.RecordType=RT_MODEND32;
 
 
       if RawRecord.RecordLength<2 then
       if RawRecord.RecordLength<2 then
-        internalerror(2015040305);
+        internalerror(2015040318);
       ModTyp:=RawRecord.RawData[0];
       ModTyp:=RawRecord.RawData[0];
       IsMainModule:=(ModTyp and $80)<>0;
       IsMainModule:=(ModTyp and $80)<>0;
       HasStartAddress:=(ModTyp and $40)<>0;
       HasStartAddress:=(ModTyp and $40)<>0;
@@ -2209,7 +2209,7 @@ implementation
           if LogicalStartAddress then
           if LogicalStartAddress then
             begin
             begin
               if NextOfs>=RawRecord.RecordLength then
               if NextOfs>=RawRecord.RecordLength then
-                internalerror(2015040305);
+                internalerror(2015040319);
               EndData:=RawRecord.RawData[NextOfs];
               EndData:=RawRecord.RawData[NextOfs];
               Inc(NextOfs);
               Inc(NextOfs);
               { frame and target method determined by thread is not allowed in MODEND records }
               { frame and target method determined by thread is not allowed in MODEND records }
@@ -2241,7 +2241,7 @@ implementation
                   else
                   else
                     begin
                     begin
                       if (NextOfs+1)>=RawRecord.RecordLength then
                       if (NextOfs+1)>=RawRecord.RecordLength then
-                        internalerror(2015040504);
+                        internalerror(2015040508);
                       TargetDisplacement := RawRecord.RawData[NextOfs]+
                       TargetDisplacement := RawRecord.RawData[NextOfs]+
                                            (RawRecord.RawData[NextOfs+1] shl 8);
                                            (RawRecord.RawData[NextOfs+1] shl 8);
                       Inc(NextOfs,2);
                       Inc(NextOfs,2);
@@ -2252,13 +2252,13 @@ implementation
             begin
             begin
               { physical start address }
               { physical start address }
               if (NextOfs+1)>=RawRecord.RecordLength then
               if (NextOfs+1)>=RawRecord.RecordLength then
-                internalerror(2015040305);
+                internalerror(2015040320);
               PhysFrameNumber:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8);
               PhysFrameNumber:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8);
               Inc(NextOfs,2);
               Inc(NextOfs,2);
               if Is32Bit then
               if Is32Bit then
                 begin
                 begin
                   if (NextOfs+3)>=RawRecord.RecordLength then
                   if (NextOfs+3)>=RawRecord.RecordLength then
-                    internalerror(2015040305);
+                    internalerror(2015040321);
                   PhysOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8)+
                   PhysOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8)+
                     (RawRecord.RawData[NextOfs+2] shl 16)+(RawRecord.RawData[NextOfs+3] shl 24);
                     (RawRecord.RawData[NextOfs+2] shl 16)+(RawRecord.RawData[NextOfs+3] shl 24);
                   Inc(NextOfs,4);
                   Inc(NextOfs,4);
@@ -2266,7 +2266,7 @@ implementation
               else
               else
                 begin
                 begin
                   if (NextOfs+1)>=RawRecord.RecordLength then
                   if (NextOfs+1)>=RawRecord.RecordLength then
-                    internalerror(2015040305);
+                    internalerror(2015040322);
                   PhysOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8);
                   PhysOffset:=RawRecord.RawData[NextOfs]+(RawRecord.RawData[NextOfs+1] shl 8);
                   Inc(NextOfs,2);
                   Inc(NextOfs,2);
                 end;
                 end;
@@ -2293,7 +2293,7 @@ implementation
             begin
             begin
               { frame method ffmLocation is not allowed in an MODEND record }
               { frame method ffmLocation is not allowed in an MODEND record }
               if FrameMethod=ffmLocation then
               if FrameMethod=ffmLocation then
-                internalerror(2015041402);
+                internalerror(2015041411);
               EndData:=(Ord(FrameMethod) shl 4)+Ord(TargetMethod);
               EndData:=(Ord(FrameMethod) shl 4)+Ord(TargetMethod);
               RawRecord.RawData[NextOfs]:=EndData;
               RawRecord.RawData[NextOfs]:=EndData;
               Inc(NextOfs);
               Inc(NextOfs);
@@ -2340,7 +2340,7 @@ implementation
               else
               else
                 begin
                 begin
                   if PhysOffset>$ffff then
                   if PhysOffset>$ffff then
-                    internalerror(2015040502);
+                    internalerror(2015040506);
                   RawRecord.RawData[NextOfs]:=Byte(PhysOffset);
                   RawRecord.RawData[NextOfs]:=Byte(PhysOffset);
                   RawRecord.RawData[NextOfs+1]:=Byte(PhysOffset shr 8);
                   RawRecord.RawData[NextOfs+1]:=Byte(PhysOffset shr 8);
                   Inc(NextOfs,2);
                   Inc(NextOfs,2);
@@ -2678,7 +2678,7 @@ implementation
       FixData: Byte;
       FixData: Byte;
     begin
     begin
       if (Offset+2)>=RawRecord.RecordLength then
       if (Offset+2)>=RawRecord.RecordLength then
-        internalerror(2015040504);
+        internalerror(2015040509);
       { unlike other fields in the OMF format, this one is big endian }
       { unlike other fields in the OMF format, this one is big endian }
       Locat:=(RawRecord.RawData[Offset] shl 8) or RawRecord.RawData[Offset+1];
       Locat:=(RawRecord.RawData[Offset] shl 8) or RawRecord.RawData[Offset+1];
       FixData:=RawRecord.RawData[Offset+2];
       FixData:=RawRecord.RawData[Offset+2];
@@ -2718,7 +2718,7 @@ implementation
           if Is32Bit then
           if Is32Bit then
             begin
             begin
               if (Offset+3)>=RawRecord.RecordLength then
               if (Offset+3)>=RawRecord.RecordLength then
-                internalerror(2015040504);
+                internalerror(2015040510);
               TargetDisplacement := RawRecord.RawData[Offset]+
               TargetDisplacement := RawRecord.RawData[Offset]+
                                    (RawRecord.RawData[Offset+1] shl 8)+
                                    (RawRecord.RawData[Offset+1] shl 8)+
                                    (RawRecord.RawData[Offset+2] shl 16)+
                                    (RawRecord.RawData[Offset+2] shl 16)+
@@ -2728,7 +2728,7 @@ implementation
           else
           else
             begin
             begin
               if (Offset+1)>=RawRecord.RecordLength then
               if (Offset+1)>=RawRecord.RecordLength then
-                internalerror(2015040504);
+                internalerror(2015040511);
               TargetDisplacement := RawRecord.RawData[Offset]+
               TargetDisplacement := RawRecord.RawData[Offset]+
                                    (RawRecord.RawData[Offset+1] shl 8);
                                    (RawRecord.RawData[Offset+1] shl 8);
               Inc(Offset,2);
               Inc(Offset,2);
@@ -2781,7 +2781,7 @@ implementation
           else
           else
             begin
             begin
               if TargetDisplacement>$ffff then
               if TargetDisplacement>$ffff then
-                internalerror(2015040502);
+                internalerror(2015040507);
               RawRecord.RawData[Offset]:=Byte(TargetDisplacement);
               RawRecord.RawData[Offset]:=Byte(TargetDisplacement);
               RawRecord.RawData[Offset+1]:=Byte(TargetDisplacement shr 8);
               RawRecord.RawData[Offset+1]:=Byte(TargetDisplacement shr 8);
               Inc(Offset,2);
               Inc(Offset,2);
@@ -2830,14 +2830,14 @@ implementation
       if not ispowerof2(AValue,p) then
       if not ispowerof2(AValue,p) then
         internalerror(2015041802);
         internalerror(2015041802);
       if (p<4) or (p>15) then
       if (p<4) or (p>15) then
-        internalerror(2015041802);
+        internalerror(2015041803);
       FPageSize:=AValue;
       FPageSize:=AValue;
     end;
     end;
 
 
   procedure TOmfRecord_LIBHEAD.DecodeFrom(RawRecord: TOmfRawRecord);
   procedure TOmfRecord_LIBHEAD.DecodeFrom(RawRecord: TOmfRawRecord);
     begin
     begin
       if RawRecord.RecordType<>RT_LIBHEAD then
       if RawRecord.RecordType<>RT_LIBHEAD then
-        internalerror(2015040301);
+        internalerror(2015040314);
       { this will also range check PageSize and will ensure that RecordLength>=13 }
       { this will also range check PageSize and will ensure that RecordLength>=13 }
       PageSize:=RawRecord.RecordLength+3;
       PageSize:=RawRecord.RecordLength+3;
       DictionaryOffset:=RawRecord.RawData[0]+
       DictionaryOffset:=RawRecord.RawData[0]+
@@ -2881,7 +2881,7 @@ implementation
   procedure TOmfRecord_LIBEND.DecodeFrom(RawRecord: TOmfRawRecord);
   procedure TOmfRecord_LIBEND.DecodeFrom(RawRecord: TOmfRawRecord);
     begin
     begin
       if RawRecord.RecordType<>RT_LIBEND then
       if RawRecord.RecordType<>RT_LIBEND then
-        internalerror(2015040301);
+        internalerror(2015040315);
       FPaddingBytes:=RawRecord.RecordLength;
       FPaddingBytes:=RawRecord.RecordLength;
     end;
     end;
 
 

+ 1 - 1
compiler/options.pas

@@ -3951,7 +3951,7 @@ begin
       InternalError(2013092801);
       InternalError(2013092801);
   if tf_x86_far_procs_push_odd_bp in target_info.flags then
   if tf_x86_far_procs_push_odd_bp in target_info.flags then
     if not UpdateTargetSwitchStr('FARPROCSPUSHODDBP', init_settings.targetswitches, true) then
     if not UpdateTargetSwitchStr('FARPROCSPUSHODDBP', init_settings.targetswitches, true) then
-      InternalError(2013092801);
+      InternalError(2013092802);
 
 
   { Use standard Android NDK prefixes when cross-compiling }
   { Use standard Android NDK prefixes when cross-compiling }
   if (source_info.system<>target_info.system) and (target_info.system in systems_android) then
   if (source_info.system<>target_info.system) and (target_info.system in systems_android) then

+ 3 - 3
compiler/optloadmodifystore.pas

@@ -161,7 +161,7 @@ unit optloadmodifystore;
                   xorn:
                   xorn:
                     newinlinenodetype:=in_xor_assign_x_y;
                     newinlinenodetype:=in_xor_assign_x_y;
                   else
                   else
-                    internalerror(2017032901);
+                    internalerror(2017032903);
                 end;
                 end;
                 inserttypeconv_internal(taddnode(ttypeconvnode(right).left).right,left.resultdef);
                 inserttypeconv_internal(taddnode(ttypeconvnode(right).left).right,left.resultdef);
                 if ttypeconvnode(right).left.nodetype in [addn,subn] then
                 if ttypeconvnode(right).left.nodetype in [addn,subn] then
@@ -343,7 +343,7 @@ unit optloadmodifystore;
                   shrn:
                   shrn:
                     newinlinenodetype:=in_shr_assign_x_y;
                     newinlinenodetype:=in_shr_assign_x_y;
                   else
                   else
-                    internalerror(2017051201);
+                    internalerror(2017051202);
                 end;
                 end;
                 inserttypeconv_internal(tshlshrnode(ttypeconvnode(right).left).right,left.resultdef);
                 inserttypeconv_internal(tshlshrnode(ttypeconvnode(right).left).right,left.resultdef);
                 result:=cinlinenode.createintern(
                 result:=cinlinenode.createintern(
@@ -486,7 +486,7 @@ unit optloadmodifystore;
                   in_ror_x_y:
                   in_ror_x_y:
                     newinlinenodetype:=in_ror_assign_x_y;
                     newinlinenodetype:=in_ror_assign_x_y;
                   else
                   else
-                    internalerror(2017071701);
+                    internalerror(2017071702);
                 end;
                 end;
                 result:=cinlinenode.createintern(
                 result:=cinlinenode.createintern(
                   newinlinenodetype,false,ccallparanode.create(
                   newinlinenodetype,false,ccallparanode.create(

Some files were not shown because too many files changed in this diff