From a0b2ce4ce9bcf88a5c60ec7f138378bd62d63a35 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 14 Mar 1995 17:53:10 +0000 Subject: [PATCH] (arm_volatile_func): Add comment describing purpose. From-SVN: r9180 --- gcc/config/arm/arm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index cff93d2608e..9995b060ee7 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2719,6 +2719,13 @@ output_return_instruction (operand, really_return) return ""; } +/* Return nonzero if optimizing and the current function is volatile + (ie: `noreturn'). + Since such functions don't return call-saved registers don't need to + be saved. Making such an optimization may seem dubious at first glance. + It was put in for a particular user who was using them to do context + switching and obviously wanted it to be fast. */ + int arm_volatile_func () { -- 2.30.2