Fix comment for cmse_nonsecure_call_clear_caller_saved
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 17 May 2017 09:18:25 +0000 (09:18 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Wed, 17 May 2017 09:18:25 +0000 (09:18 +0000)
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

gcc/ChangeLog
gcc/config/arm/arm.c

index 219836cf092a754fa3a17be6b8c543b2e13d62ba..4668e354f4dbb2f23a9f0ad8ebbb7543d85c04ad 100644 (file)
@@ -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.
index 3ae999cb723a234332bd1ca2e80b09df240c67f0..a888e706004d4bd17be2dfc41237bbea691dccb0 100644 (file)
@@ -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)