From 43652d9deaa65d1fa1aca67ea3ac3a6f6d852086 Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Wed, 26 Feb 2003 08:33:57 +0000 Subject: [PATCH] (ia64): Undef this macro if it's defined (bug in Intel's ECC v7.0?). (_Uia64_find_dyn_list): Add "gp" argument. (Logical change 1.55) --- include/libunwind-ia64.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/libunwind-ia64.h b/include/libunwind-ia64.h index 5d55d2c7..98568cbb 100644 --- a/include/libunwind-ia64.h +++ b/include/libunwind-ia64.h @@ -29,6 +29,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include #include +#ifdef ia64 + /* This works around a bug in Intel's ECC v7.0 which defines "ia64" + as "1". */ +# undef ia64 +#endif + #define UNW_TARGET ia64 #define UNW_TARGET_IA64 1 @@ -145,7 +151,8 @@ extern int _Uia64_search_unwind_table (unw_addr_space_t as, unw_word_t ip, list-address is returned. In all other cases, 0 is returned. */ extern unw_word_t _Uia64_find_dyn_list (unw_addr_space_t as, void *table, size_t table_size, - unw_word_t segbase, void *arg); + unw_word_t segbase, unw_word_t gp, + void *arg); /* This is a helper routine to obtain the kernel-unwind info. It is signal-safe. */