That's quite a list of compatibility issues, and I don't envy you the job of porting to that platform. One little area I may be able to help out is here:

On 11/5/19 10:03 AM, Daniel Richard G. wrote:

* IBM XLC compiler does not support the C11 _Alignas() specifier,

I take it that the compiler defines __STDC_VERSION__ to be 201112 without actually supporting C11? That's annoying. Would the attached Gnulib patch work around the problem for C? What would be needed for C++?

diff --git a/lib/stdalign.in.h b/lib/stdalign.in.h
index 5c2c72e2b..9d7321c31 100644
--- a/lib/stdalign.in.h
+++ b/lib/stdalign.in.h
@@ -97,7 +97,7 @@
 
    */
 
-#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 || defined __xlC__
 # if defined __cplusplus && 201103 <= __cplusplus
 #  define _Alignas(a) alignas (a)
 # elif ((defined __APPLE__ && defined __MACH__                  \

Reply via email to