From a997fff52886be8c59f886376003539634e4781a Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Wed, 10 May 2017 13:34:07 +0000 Subject: [PATCH] raise-gcc.c (exception_class_eq): Make ec parameter const. 2017-05-10 Bernd Edlinger * raise-gcc.c (exception_class_eq): Make ec parameter const. From-SVN: r247836 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/raise-gcc.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index a99a53beafc..72a42a96173 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2017-05-10 Bernd Edlinger + + * raise-gcc.c (exception_class_eq): Make ec parameter const. + 2017-05-02 Richard Biener * gcc-interface/misc.c (gnat_post_options): Do not set diff --git a/gcc/ada/raise-gcc.c b/gcc/ada/raise-gcc.c index 1264a726c63..62a85dac12b 100644 --- a/gcc/ada/raise-gcc.c +++ b/gcc/ada/raise-gcc.c @@ -909,7 +909,8 @@ extern struct Exception_Data Non_Ada_Error; /* Return true iff the exception class of EXCEPT is EC. */ static int -exception_class_eq (const _GNAT_Exception *except, _Unwind_Exception_Class ec) +exception_class_eq (const _GNAT_Exception *except, + const _Unwind_Exception_Class ec) { #ifdef __ARM_EABI_UNWINDER__ return memcmp (except->common.exception_class, ec, 8) == 0; -- 2.30.2