summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-07-22 19:43:47 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-07-22 19:43:47 +0000
commit440b36f7388bc01dfa262e0edd0bb44cc5acb257 (patch)
tree3b2edd6e6cf7bc3a3c5a12601a7a5366901ffb2c
parenta6f2e9d3879cc82a49f1e8838b081175c93a8232 (diff)
downloadfpc-440b36f7388bc01dfa262e0edd0bb44cc5acb257.tar.gz
* generate no uleb with differences for line information
git-svn-id: https://svn.freepascal.org/svn/fpc/branches/laksen@39490 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--riscv_new/compiler/dbgdwarf.pas10
1 files changed, 6 insertions, 4 deletions
diff --git a/riscv_new/compiler/dbgdwarf.pas b/riscv_new/compiler/dbgdwarf.pas
index 28ca4ed236..375502dc81 100644
--- a/riscv_new/compiler/dbgdwarf.pas
+++ b/riscv_new/compiler/dbgdwarf.pas
@@ -3774,10 +3774,12 @@ implementation
asmline.concat(tai_comment.Create(strpnew('['+tostr(currfileinfo.line)+':'+tostr(currfileinfo.column)+']')));
if (prevlabel = nil) or
- { darwin's assembler cannot create an uleb128 of the difference }
- { between to symbols }
- { same goes for Solaris native assembler }
- (target_info.system in systems_darwin) or
+ { darwin's assembler cannot create an uleb128 of the difference
+ between to symbols
+ same goes for Solaris native assembler
+ ... and riscv }
+
+ (target_info.system in systems_darwin+[system_riscv32_linux,system_riscv64_linux]) or
(target_asm.id=as_solaris_as) then
begin
asmline.concat(tai_const.create_8bit(DW_LNS_extended_op));