aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2017-05-17 09:18:25 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2017-05-17 09:18:25 +0000
commit26092cc782a0e027601d4764caa15accefdb56d1 (patch)
tree6a2558d6f1ae297476ac2e73a35d3ebdf8595a66 /gcc
parentd2d61a746904c8e530c1177232d8b49b92b25131 (diff)
downloadgcc-26092cc782a0e027601d4764caa15accefdb56d1.zip
gcc-26092cc782a0e027601d4764caa15accefdb56d1.tar.gz
gcc-26092cc782a0e027601d4764caa15accefdb56d1.tar.bz2
Fix comment for cmse_nonsecure_call_clear_caller_saved
2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/ * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and restoring of callee-saved registers. From-SVN: r248142
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/arm/arm.c7
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 219836c..4668e35 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
+
+ * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
+ readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
+ restoring of callee-saved registers.
+
2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
* compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 3ae999c..a888e70 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -16909,9 +16909,10 @@ compute_not_to_clear_mask (tree arg_type, rtx arg_rtx, int regno,
return not_to_clear_mask;
}
-/* Saves callee saved registers, clears callee saved registers and caller saved
- registers not used to pass arguments before a cmse_nonsecure_call. And
- restores the callee saved registers after. */
+/* Clears caller saved registers not used to pass arguments before a
+ cmse_nonsecure_call. Saving, clearing and restoring of callee saved
+ registers is done in __gnu_cmse_nonsecure_call libcall.
+ See libgcc/config/arm/cmse_nonsecure_call.S. */
static void
cmse_nonsecure_call_clear_caller_saved (void)