Properly check glibc.
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 6 Sep 2010 21:13:56 +0000 (21:13 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 6 Sep 2010 21:13:56 +0000 (14:13 -0700)
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

gcc/ChangeLog
gcc/config/i386/linux-unwind.h

index 965d0c3002f5fcbff76613b33daf6041526bb224..f51c9083a41796b7657d6367de74c0cdc6f72567 100644 (file)
@@ -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
index 36ee3709261777e867d21322d1d2889e719b4c41..415f7a3702b56d9d9f45d467f1df69ecab2cd728 100644 (file)
@@ -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>