From 46fa8866775cc381511da12a5aeab916d3527a33 Mon Sep 17 00:00:00 2001
From: Alexander Fedotov <alfedotov@gmail.com>
Date: Wed, 6 Mar 2019 13:02:17 +0300
Subject: [PATCH] Allow SVC as a parameter of intterupt attribute for Arm.

---
 gcc/config/arm/arm.c | 2 ++
 gcc/doc/extend.texi  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 69b74a237a5..d0252408ab2 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -3808,6 +3808,8 @@ static const isr_attribute_arg isr_attribute_args [] =
   { "undef", ARM_FT_EXCEPTION },
   { "SWI",   ARM_FT_EXCEPTION },
   { "swi",   ARM_FT_EXCEPTION },
+  { "SVC",   ARM_FT_EXCEPTION },
+  { "svc",   ARM_FT_EXCEPTION },
   { NULL,    ARM_FT_NORMAL }
 };
 
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 7425d890617..808813d1bff 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -4176,7 +4176,7 @@ void f () __attribute__ ((interrupt ("IRQ")));
 
 @noindent
 Permissible values for this parameter are: @code{IRQ}, @code{FIQ},
-@code{SWI}, @code{ABORT} and @code{UNDEF}.
+@code{SVC}, @code{SWI}, @code{ABORT} and @code{UNDEF}. Permissible values are also accepted in lower case.
 
 On ARMv7-M the interrupt type is ignored, and the attribute means the function
 may be called with a word-aligned stack pointer.
-- 
2.20.1.windows.1

