TestRealTime . wrote:
So far I incline to think that it is a problem of compiler itself, what do
you think?

Yes, that sounds right. I installed the attached patch into Gnulib, which should work around the problem there. Presumably something similar can be installed into FreeType.

You might want to upgrade your IBM compiler at some point. XL C 6.0 is pretty old, right?
From 37c9fc066c4007072390453d79b5a5df6d152385 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Thu, 3 Nov 2016 21:34:58 -0700
Subject: [PATCH] intprops: port to older XL C

Problem reported by Alexander Samoilov in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
http://savannah.nongnu.org/bugs/?49448
* lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
Define to 1 only for XL C 12.1 or later, since this bug
occurs in XL C for AIX 6.0 but not in 12.1.
---
 ChangeLog      | 10 ++++++++++
 lib/intprops.h |  3 ++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index fecb478..79495a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-11-03  Paul Eggert  <egg...@cs.ucla.edu>
+
+	intprops: port to older XL C
+	Problem reported by Alexander Samoilov in:
+	http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
+	http://savannah.nongnu.org/bugs/?49448
+	* lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
+	Define to 1 only for XL C 12.1 or later, since this bug
+	occurs in XL C for AIX 6.0 but not in 12.1.
+
 2016-11-02  Pádraig Brady  <p...@draigbrady.com>
 
 	backupfile: initialize default suffix within the implementation
diff --git a/lib/intprops.h b/lib/intprops.h
index 9734d07..716741a 100644
--- a/lib/intprops.h
+++ b/lib/intprops.h
@@ -105,7 +105,8 @@ verify (TYPE_WIDTH (unsigned int) == UINT_WIDTH);
 
 /* Does the __typeof__ keyword work?  This could be done by
    'configure', but for now it's easier to do it by hand.  */
-#if (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
+#if (2 <= __GNUC__ \
+     || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \
      || (0x5110 <= __SUNPRO_C && !__STDC__))
 # define _GL_HAVE___TYPEOF__ 1
 #else
-- 
2.7.4

Reply via email to