1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +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:20:05 +00:00
parent d17b254606
commit ff0ce31c65

View file

@ -120,6 +120,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__ */