diff options
author | James E Wilson <wilson@specifixinc.com> | 2004-02-07 07:30:48 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2004-02-06 23:30:48 -0800 |
commit | 468c45a3e68bb8e029e58e9fa4a28067b6a08805 (patch) | |
tree | c99363e9766a8853eee1c62319237c6f339d2b89 /gcc | |
parent | 9c9176699ad0bc45c81d4e5b4f5bacdb54f5b3bc (diff) | |
download | gcc-468c45a3e68bb8e029e58e9fa4a28067b6a08805.zip gcc-468c45a3e68bb8e029e58e9fa4a28067b6a08805.tar.gz gcc-468c45a3e68bb8e029e58e9fa4a28067b6a08805.tar.bz2 |
Fix compile error with old glibc verisons.
* config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
glibc 2.3 or better.
From-SVN: r77443
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/ia64/linux.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a9b8b3..686d7be 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-02-06 James E Wilson <wilson@specifixinc.com> + + * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for + glibc 2.3 or better. + 2004-02-06 Kazu Hirata <kazu@cs.umass.edu> * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change diff --git a/gcc/config/ia64/linux.h b/gcc/config/ia64/linux.h index fc7df80..5c73b0c 100644 --- a/gcc/config/ia64/linux.h +++ b/gcc/config/ia64/linux.h @@ -58,6 +58,11 @@ do { \ /* Do code reading to identify a signal frame, and set the frame state data appropriately. See unwind-dw2.c for the structs. */ +/* This works only for glibc-2.3 and later, because sigcontext is different + in glibc-2.2.4. */ + +#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) + #ifdef IN_LIBGCC2 #include <signal.h> #include <sys/ucontext.h> @@ -207,3 +212,4 @@ do { \ } #endif /* IN_LIBGCC2 */ +#endif /* glibc-2.3 or better */ |