[cfe-commits] [libcxx] Please review patch to <__config> for use with __GNUC__

Howard Hinnant hhinnant at apple.com
Sun Aug 19 08:18:31 PDT 2012


The following patch was sent to me by Dev Dude, who is not on this list.  Could someone who is running libcxx and picking up the #elif defined(__GNUC__) branch in <__config> review this?  It looks good to me, but I'm not testing this branch of <__config>:

Index: include/__config
===================================================================
--- include/__config	(revision 161117)
+++ include/__config	(working copy)
@@ -276,6 +276,7 @@
 #elif defined(__GNUC__)
 
 #define _ALIGNAS(x) __attribute__((__aligned__(x)))
+#define _ALIGNAS_TYPE(x) __attribute__((__aligned__(__alignof(x))))
 
 #define _LIBCPP_NORETURN __attribute__((noreturn))
 

Thanks,
Howard




More information about the cfe-commits mailing list