This commit is contained in:
Bob Vandette 2019-03-19 14:31:52 -04:00
commit 646779038f

View File

@ -270,8 +270,8 @@ inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53017
//
// GCC versions older than 4.6.4 would fail even with "+0", and needs additional
// cast to typeof(x) to work around the similar bug.
// cast to __typeof__(x) to work around the similar bug.
//
#define ATTRIBUTE_ALIGNED(x) __attribute__((aligned((typeof(x))x+0)))
#define ATTRIBUTE_ALIGNED(x) __attribute__((aligned((__typeof__(x))x+0)))
#endif // SHARE_UTILITIES_GLOBALDEFINITIONS_GCC_HPP