Commit a997fff5 by Bernd Edlinger Committed by Bernd Edlinger

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
parent 0ca2e7f7
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> 2017-05-02 Richard Biener <rguenther@suse.de>
* gcc-interface/misc.c (gnat_post_options): Do not set * gcc-interface/misc.c (gnat_post_options): Do not set
......
...@@ -909,7 +909,8 @@ extern struct Exception_Data Non_Ada_Error; ...@@ -909,7 +909,8 @@ extern struct Exception_Data Non_Ada_Error;
/* Return true iff the exception class of EXCEPT is EC. */ /* Return true iff the exception class of EXCEPT is EC. */
static int 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__ #ifdef __ARM_EABI_UNWINDER__
return memcmp (except->common.exception_class, ec, 8) == 0; return memcmp (except->common.exception_class, ec, 8) == 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment