1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00

Add __attribute__ ((returns_twice)) to the

ia64_getcontext prototype so that gcc will make the right
arrangements and avoid an illegal instruction during
call-with-current-continuation.
This commit is contained in:
Rob Browning 2006-07-19 06:44:30 +00:00
parent 71aa2c6c7b
commit 5121c02c00

View file

@ -101,6 +101,10 @@ struct rv
long retval;
long first_return;
};
#ifdef __GNUC__
__attribute__ ((returns_twice))
#endif /* __GNUC__ */
extern struct rv ia64_getcontext (ucontext_t *) __asm__ ("getcontext");
#endif /* __ia64__ */