From: Bernd Edlinger Date: Wed, 10 May 2017 13:34:07 +0000 (+0000) Subject: raise-gcc.c (exception_class_eq): Make ec parameter const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a997fff52886be8c59f886376003539634e4781a;p=gcc.git 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 --- 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;