raise-gcc.c (exception_class_eq): Make ec parameter const.

2017-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * raise-gcc.c (exception_class_eq): Make ec parameter const.

From-SVN: r247836
This commit is contained in:
Bernd Edlinger 2017-05-10 13:34:07 +00:00 committed by Bernd Edlinger
parent 0ca2e7f77c
commit a997fff528
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2017-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
* raise-gcc.c (exception_class_eq): Make ec parameter const.
2017-05-02 Richard Biener <rguenther@suse.de>
* gcc-interface/misc.c (gnat_post_options): Do not set

View file

@ -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;