Jelajahi Sumber

* generate no uleb with differences for line information

git-svn-id: branches/laksen/riscv_new@39490 -
florian 7 tahun lalu
induk
melakukan
f48203b66f
1 mengubah file dengan 6 tambahan dan 4 penghapusan
  1. 6 4
      compiler/dbgdwarf.pas

+ 6 - 4
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));