RISC-V: Define DWARF2_USE_FIXED_ADVANCE_PC.
authorKuan-Lin Chen <rufus@andestech.com>
Thu, 2 Mar 2017 06:54:32 +0000 (14:54 +0800)
committerPalmer Dabbelt <palmer@dabbelt.com>
Tue, 14 Mar 2017 16:51:29 +0000 (09:51 -0700)
gas/ChangeLog

2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>

        * config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.

gas/ChangeLog
gas/config/tc-riscv.h

index 1478cdf..19245ec 100644 (file)
@@ -1,5 +1,9 @@
 2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
 
+       * config/tc-riscv.h (HWARD2_USE_FIXED_ADVANCE_PC): New define.
+
+2017-03-02  Kuan-Lin Chen  <rufus@andestech.com>
+
        * config/tc-riscv.c (md_apply_fix): Set fx_frag and
        fx_next->fx_frag for CFA_advance_loc relocations.
 
index ae8d60e..e92b387 100644 (file)
@@ -112,4 +112,7 @@ extern int tc_riscv_regname_to_dw2regnum (char *);
 #define elf_tc_final_processing riscv_elf_final_processing
 extern void riscv_elf_final_processing (void);
 
+/* Adjust debug_line after relaxation.  */
+#define DWARF2_USE_FIXED_ADVANCE_PC 1
+
 #endif /* TC_RISCV */