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:
parent
793e2e9375
commit
07c5c6b3c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue