[PATCH] [ARC] Add support for naked functions.
[gcc.git] / gcc / config / arc / arc.md
index 9aa9cd7ae2901d3d8835458686ee564127063388..0d14085bc2b608a44eac6287e611c80dd4b4b16c 100644 (file)
   (cond [(eq_attr "in_delay_slot" "false")
         (const_string "no")
         (match_test "regno_clobbered_p
-                       (arc_return_address_regs
-                         [arc_compute_function_type (cfun)],
+                       (arc_return_address_register
+                         (arc_compute_function_type (cfun)),
                         insn, SImode, 1)")
         (const_string "no")]
        (const_string "yes")))
 {
   rtx reg
     = gen_rtx_REG (Pmode,
-                  arc_return_address_regs[arc_compute_function_type (cfun)]);
+                  arc_return_address_register (arc_compute_function_type
+                                               (cfun)));
 
   if (TARGET_V2
       && ARC_INTERRUPT_P (arc_compute_function_type (cfun)))
   xop[0] = operands[0];
   xop[1]
     = gen_rtx_REG (Pmode,
-                  arc_return_address_regs[arc_compute_function_type (cfun)]);
+                  arc_return_address_register (arc_compute_function_type
+                                               (cfun)));
 
   if (TARGET_PAD_RETURN)
     arc_pad_return ();