]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Work around AIX compiler bug.
authorBruno Haible <bruno@clisp.org>
Thu, 10 Feb 2005 15:50:31 +0000 (15:50 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:11 +0000 (12:12 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/allocsa.h

index e2a52f310f2e37aeadbca5ed31065f75ea84decf..84b3b524285914ac59ed27bf5f5bea92020562d7 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-10  Bruno Haible  <bruno@clisp.org>
+
+       * allocsa.h (sa_alignof): Define differently with AIX xlc, to avoid
+       a bug of this compiler on AIX 3.2.5 dealing with enums.
+
 2005-02-07  Bruno Haible  <bruno@clisp.org>
 
        * c-strcase.h: New file, based on strcase.h.
index 5ae49e50745b9b18173f89f8aceea8a8324913d3..dcc5e9b135d1285555015ca2167a44efbc368419 100644 (file)
@@ -1,5 +1,5 @@
 /* Safe automatic memory allocation.
-   Copyright (C) 2003-2004 Free Software Foundation, Inc.
+   Copyright (C) 2003-2005 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2003.
 
    This program is free software; you can redistribute it and/or modify
@@ -81,6 +81,10 @@ extern void freesa (void *p);
   /* Work around a HP-UX 10.20 cc bug with enums constants defined as offsetof
      values.  */
 # define sa_alignof(type) (sizeof (type) <= 4 ? 4 : 8)
+#elif defined _AIX
+  /* Work around an AIX 3.2.5 xlc bug with enums constants defined as offsetof
+     values.  */
+# define sa_alignof(type) 4
 #else
 # define sa_alignof(type) offsetof (struct { char __slot1; type __slot2; }, __slot2)
 #endif