From 563ce442b90811c802860ad92a6cc304750ef1ed Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 7 Oct 2010 16:09:12 -0400 Subject: [PATCH] build fix: gcc 3.4 on ia64 vs gcc PR21838 * runtime/runtime.h (__ia64_save_stack_nonlocal): New dummy fn. --- runtime/runtime.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/runtime/runtime.h b/runtime/runtime.h index 388216c04..d4f41db01 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -210,6 +210,14 @@ void cleanup_module(void) ret; }) +#if defined(__ia64__) && defined(__GNUC__) && (__GNUC__ < 4) +/* Due to http://gcc.gnu.org/PR21838, old gcc on ia64 generates calls + to __ia64_save_stack_nonlocal(), since our generated code uses + __label__ constructs since PR11004. This dummy declaration works + around the undefined reference. */ +void __ia64_save_stack_nonlocal (void) { } +#endif + MODULE_LICENSE("GPL"); #endif /* _RUNTIME_H_ */ -- 2.43.5