Migrate ABSL_ATTRIBUTE_FUNC_ALIGN to [[gnu::aligned(...)]]

PiperOrigin-RevId: 1011904174
diff --git a/absl/base/attributes.h b/absl/base/attributes.h
index f236f6f..6888f8d 100644
--- a/absl/base/attributes.h
+++ b/absl/base/attributes.h
@@ -657,7 +657,9 @@
 //
 // Tells the compiler to align the function start at least to certain
 // alignment boundary
-#if ABSL_HAVE_ATTRIBUTE(aligned) || (defined(__GNUC__) && !defined(__clang__))
+#if ABSL_HAVE_CPP_ATTRIBUTE(gnu::aligned)
+#define ABSL_ATTRIBUTE_FUNC_ALIGN(bytes) [[gnu::aligned(bytes)]]
+#elif ABSL_HAVE_ATTRIBUTE(aligned) || (defined(__GNUC__) && !defined(__clang__))
 #define ABSL_ATTRIBUTE_FUNC_ALIGN(bytes) __attribute__((aligned(bytes)))
 #else
 #define ABSL_ATTRIBUTE_FUNC_ALIGN(bytes)