diff options
Diffstat (limited to 'compiler/powerpc64/cpubase.pas')
-rw-r--r-- | compiler/powerpc64/cpubase.pas | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/compiler/powerpc64/cpubase.pas b/compiler/powerpc64/cpubase.pas index 7d0c5f9732..16745cdedf 100644 --- a/compiler/powerpc64/cpubase.pas +++ b/compiler/powerpc64/cpubase.pas @@ -398,6 +398,7 @@ function inverse_cond(const c: TAsmCond): Tasmcond; function conditions_equal(const c1, c2: TAsmCond): boolean; function dwarf_reg(r:tregister):shortint; function dwarf_reg_no_error(r:tregister):shortint; +function eh_return_data_regno(nr: longint): longint; implementation @@ -566,10 +567,18 @@ begin internalerror(200603251); end; - function dwarf_reg_no_error(r:tregister):shortint; - begin - result:=regdwarf_table[findreg_by_number(r)]; - end; +function dwarf_reg_no_error(r:tregister):shortint; + begin + result:=regdwarf_table[findreg_by_number(r)]; + end; + +function eh_return_data_regno(nr: longint): longint; +begin + if (nr>=0) and (nr<2) then + result:=nr+3 + else + result:=-1; +end; end. |