changeset 37291:16716453425c

stdalign: port to HP-UX compilers * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x)) if __HP_cc or __HP_aCC are nonzero.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 20 Jan 2014 12:36:30 -0800
parents 0ef5199107ef
children 9d49534784cb
files ChangeLog lib/stdalign.in.h
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jan 16 13:01:07 2014 -0800
+++ b/ChangeLog	Mon Jan 20 12:36:30 2014 -0800
@@ -1,3 +1,9 @@
+2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+	stdalign: port to HP-UX compilers
+	* lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
+	if __HP_cc or __HP_aCC are nonzero.
+
 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
 
 	strtoimax: port to platforms lacking 'long long'
--- a/lib/stdalign.in.h	Thu Jan 16 13:01:07 2014 -0800
+++ b/lib/stdalign.in.h	Mon Jan 20 12:36:30 2014 -0800
@@ -95,7 +95,8 @@
 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112
 # if defined __cplusplus && 201103 <= __cplusplus
 #  define _Alignas(a) alignas (a)
-# elif __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC || 0x5110 <= __SUNPRO_C
+# elif (__GNUC__ || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
+        || __ICC || 0x5110 <= __SUNPRO_C)
 #  define _Alignas(a) __attribute__ ((__aligned__ (a)))
 # elif 1300 <= _MSC_VER
 #  define _Alignas(a) __declspec (align (a))