ecl_process_env_unsafe: don't mark as __attribute__((const))

This can cause the C compiler to optimize away multiple calls to this
function, which makes the ECL_WITH_LISP_FPE macro fail.
This commit is contained in:
Marius Gerbershagen 2020-01-11 16:41:33 +01:00
parent 793e2e9375
commit 07c5c6b3c1

View file

@ -159,7 +159,7 @@ struct ecl_interrupt_struct {
#if defined(ECL_THREADS)
# define cl_env (*ecl_process_env())
extern ECL_API cl_env_ptr ecl_process_env(void) __attribute__((const));
extern ECL_API cl_env_ptr ecl_process_env_unsafe(void) __attribute__((const));
extern ECL_API cl_env_ptr ecl_process_env_unsafe(void);
#else
# define cl_env (*cl_env_p)
# define ecl_process_env() cl_env_p