aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-09-06 21:13:56 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-09-06 14:13:56 -0700
commit4e18507b6834ce629c8bef80adacb19ef205279f (patch)
tree231dc5214e78a7477469e6e9e948c39ad4ba5bb8 /gcc
parentf884552b4f02a94b32d070715a91787753f6128b (diff)
downloadgcc-4e18507b6834ce629c8bef80adacb19ef205279f.zip
gcc-4e18507b6834ce629c8bef80adacb19ef205279f.tar.gz
gcc-4e18507b6834ce629c8bef80adacb19ef205279f.tar.bz2
Properly check glibc.
2010-09-06 H.J. Lu <hongjiu.lu@intel.com> * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly check glibc. From-SVN: r163933
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/linux-unwind.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 965d0c3..f51c908 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
+ check glibc.
+
2010-09-06 Uros Bizjak <ubizjak@gmail.com>
PR target/22152
diff --git a/gcc/config/i386/linux-unwind.h b/gcc/config/i386/linux-unwind.h
index 36ee370..415f7a3 100644
--- a/gcc/config/i386/linux-unwind.h
+++ b/gcc/config/i386/linux-unwind.h
@@ -106,7 +106,7 @@ x86_64_fallback_frame_state (struct _Unwind_Context *context,
signal-turned-exceptions for them. There's also no configure-run for
the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H. Using the
target libc version macro should be enough. */
-#if !(__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)
+#if defined __GLIBC__ && !(__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)
#include <signal.h>
#include <sys/ucontext.h>