This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Use __alignof__ instead of alignof in tr1/type_traits


Hi,

tested x86-linux, committed.

Paolo.

//////////////
2005-01-23  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/type_traits (aligned_storage): Use __aligned__ instead
	of aligned.
diff -urN libstdc++-v3-orig/include/tr1/type_traits libstdc++-v3/include/tr1/type_traits
--- libstdc++-v3-orig/include/tr1/type_traits	2005-01-11 13:29:29.000000000 +0100
+++ libstdc++-v3/include/tr1/type_traits	2005-01-23 11:50:59.000000000 +0100
@@ -662,7 +662,7 @@
   // 
   // template<std::size_t _Len, std::size_t _Align>
   //   struct aligned_storage
-  //   { typedef char type[_Len] __attribute__((aligned(_Align))); }
+  //   { typedef char type[_Len] __attribute__((__aligned__(_Align))); }
   //
   // Temporary workaround, useful for Align up to 32:
   template<std::size_t, std::size_t>
@@ -674,7 +674,7 @@
       union type
       {
 	unsigned char __data[_Len];
-	char __align __attribute__((aligned(1)));
+	char __align __attribute__((__aligned__(1)));
       };
     };
 
@@ -684,7 +684,7 @@
       union type
       {
 	unsigned char __data[_Len];
-	char __align __attribute__((aligned(2)));
+	char __align __attribute__((__aligned__(2)));
       };
     };
 
@@ -694,7 +694,7 @@
       union type
       {
 	unsigned char __data[_Len];
-	char __align __attribute__((aligned(4)));
+	char __align __attribute__((__aligned__(4)));
       };
     };
 
@@ -704,7 +704,7 @@
       union type
       {
 	unsigned char __data[_Len];
-	char __align __attribute__((aligned(8)));
+	char __align __attribute__((__aligned__(8)));
       };
     };
 
@@ -714,7 +714,7 @@
       union type
       {
 	unsigned char __data[_Len];
-	char __align __attribute__((aligned(16)));
+	char __align __attribute__((__aligned__(16)));
       };
     };
   
@@ -724,7 +724,7 @@
       union type
       {
 	unsigned char __data[_Len];
-	char __align __attribute__((aligned(32)));
+	char __align __attribute__((__aligned__(32)));
       };
     };
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]