aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2024-09-23 15:31:18 +0100
committerTamar Christina <tamar.christina@arm.com>2024-09-23 15:31:18 +0100
commit4068096fbf5aef65883a7492f4940cea85b39f40 (patch)
tree57e2100aeab5789eb696f0f9630fa9465875e1eb
parentbdf41d627c13bc5f0dc676991f4513daa9d9ae36 (diff)
downloadgcc-4068096fbf5aef65883a7492f4940cea85b39f40.zip
gcc-4068096fbf5aef65883a7492f4940cea85b39f40.tar.gz
gcc-4068096fbf5aef65883a7492f4940cea85b39f40.tar.bz2
Rename REG_CFA_TOGGLE_RA_MANGLE to REG_CFA_NEGATE_RA_STATE
The current name REG_CFA_TOGGLE_RA_MANGLE is not representative of what it really is, i.e. a register to represent several states, not only a binary one. Same for dwarf2out_frame_debug_cfa_toggle_ra_mangle. gcc/ChangeLog: * combine-stack-adj.cc (no_unhandled_cfa): Rename. * config/aarch64/aarch64.cc (aarch64_expand_prologue): Rename. (aarch64_expand_epilogue): Rename. * dwarf2cfi.cc (dwarf2out_frame_debug_cfa_toggle_ra_mangle): Rename this... (dwarf2out_frame_debug_cfa_negate_ra_state): To this. (dwarf2out_frame_debug): Rename. * reg-notes.def (REG_CFA_NOTE): Rename REG_CFA_TOGGLE_RA_MANGLE.
-rw-r--r--gcc/combine-stack-adj.cc2
-rw-r--r--gcc/config/aarch64/aarch64.cc4
-rw-r--r--gcc/dwarf2cfi.cc8
-rw-r--r--gcc/reg-notes.def8
4 files changed, 11 insertions, 11 deletions
diff --git a/gcc/combine-stack-adj.cc b/gcc/combine-stack-adj.cc
index 2da9bf2..367d3b6 100644
--- a/gcc/combine-stack-adj.cc
+++ b/gcc/combine-stack-adj.cc
@@ -212,7 +212,7 @@ no_unhandled_cfa (rtx_insn *insn)
case REG_CFA_SET_VDRAP:
case REG_CFA_WINDOW_SAVE:
case REG_CFA_FLUSH_QUEUE:
- case REG_CFA_TOGGLE_RA_MANGLE:
+ case REG_CFA_NEGATE_RA_STATE:
return false;
}
diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc
index 68913be..e41431d 100644
--- a/gcc/config/aarch64/aarch64.cc
+++ b/gcc/config/aarch64/aarch64.cc
@@ -9612,7 +9612,7 @@ aarch64_expand_prologue (void)
default:
gcc_unreachable ();
}
- add_reg_note (insn, REG_CFA_TOGGLE_RA_MANGLE, const0_rtx);
+ add_reg_note (insn, REG_CFA_NEGATE_RA_STATE, const0_rtx);
RTX_FRAME_RELATED_P (insn) = 1;
}
@@ -10033,7 +10033,7 @@ aarch64_expand_epilogue (rtx_call_insn *sibcall)
default:
gcc_unreachable ();
}
- add_reg_note (insn, REG_CFA_TOGGLE_RA_MANGLE, const0_rtx);
+ add_reg_note (insn, REG_CFA_NEGATE_RA_STATE, const0_rtx);
RTX_FRAME_RELATED_P (insn) = 1;
}
diff --git a/gcc/dwarf2cfi.cc b/gcc/dwarf2cfi.cc
index 1231b5b..4ad9acb 100644
--- a/gcc/dwarf2cfi.cc
+++ b/gcc/dwarf2cfi.cc
@@ -1547,13 +1547,13 @@ dwarf2out_frame_debug_cfa_window_save (void)
cur_row->window_save = true;
}
-/* A subroutine of dwarf2out_frame_debug, process a REG_CFA_TOGGLE_RA_MANGLE.
+/* A subroutine of dwarf2out_frame_debug, process a REG_CFA_NEGATE_RA_STATE.
Note: DW_CFA_GNU_window_save dwarf opcode is reused for toggling RA mangle
state, this is a target specific operation on AArch64 and can only be used
on other targets if they don't use the window save operation otherwise. */
static void
-dwarf2out_frame_debug_cfa_toggle_ra_mangle (void)
+dwarf2out_frame_debug_cfa_negate_ra_state (void)
{
dw_cfi_ref cfi = new_cfi ();
@@ -2341,8 +2341,8 @@ dwarf2out_frame_debug (rtx_insn *insn)
handled_one = true;
break;
- case REG_CFA_TOGGLE_RA_MANGLE:
- dwarf2out_frame_debug_cfa_toggle_ra_mangle ();
+ case REG_CFA_NEGATE_RA_STATE:
+ dwarf2out_frame_debug_cfa_negate_ra_state ();
handled_one = true;
break;
diff --git a/gcc/reg-notes.def b/gcc/reg-notes.def
index 5b878fb..ddcf16b 100644
--- a/gcc/reg-notes.def
+++ b/gcc/reg-notes.def
@@ -180,10 +180,10 @@ REG_CFA_NOTE (CFA_WINDOW_SAVE)
the rest of the compiler as a CALL_INSN. */
REG_CFA_NOTE (CFA_FLUSH_QUEUE)
-/* Attached to insns that are RTX_FRAME_RELATED_P, toggling the mangling status
- of return address. Currently it's only used by AArch64. The argument is
- ignored. */
-REG_CFA_NOTE (CFA_TOGGLE_RA_MANGLE)
+/* Attached to insns that are RTX_FRAME_RELATED_P, indicating an authentication
+ of the return address. Currently it's only used by AArch64.
+ The argument is ignored. */
+REG_CFA_NOTE (CFA_NEGATE_RA_STATE)
/* Indicates what exception region an INSN belongs in. This is used
to indicate what region to which a call may throw. REGION 0