[ARC] Enable .cfi_* pseudo-ops.
[deliverable/binutils-gdb.git] / gas / config / tc-arc.c
index f2d3a0e52c8ffc5b18f92d834474feb8355e9a15..bfe9ae1448841240f92c6fac049765fb007e924c 100644 (file)
@@ -24,6 +24,7 @@
 #include "subsegs.h"
 #include "struc-symbol.h"
 #include "dwarf2dbg.h"
+#include "dw2gencfi.h"
 #include "safe-ctype.h"
 
 #include "opcode/arc.h"
@@ -3675,3 +3676,24 @@ arc_pcrel_adjust (fragS *fragP)
 
   return 0;
 }
+
+/* Initialize the DWARF-2 unwind information for this procedure.  */
+
+void
+tc_arc_frame_initial_instructions (void)
+{
+  /* Stack pointer is register 28.  */
+  cfi_add_CFA_def_cfa_register (28);
+}
+
+int
+tc_arc_regname_to_dw2regnum (char *regname)
+{
+  struct symbol *sym;
+
+  sym = hash_find (arc_reg_hash, regname);
+  if (sym)
+    return S_GET_VALUE (sym);
+
+  return -1;
+}
This page took 0.02473 seconds and 4 git commands to generate.