summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydata.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-12-03 11:43:57 -0800
committerLars Knoll <lars.knoll@qt.io>2019-12-07 14:17:23 +0100
commitd7e7befe500931afce6dee00bea81ac85b32a69f (patch)
tree34bbb77bfba212428438f4ebb76dda92e145ae6d /src/corelib/tools/qarraydata.cpp
parenta07925576a82e8e6e627d13d22416b05f5bb534b (diff)
Tell the compiler that QArrayData returns aligned pointers
GCC 4.9 and later support the __attribute__((alloc_align)) attributes that indicate the alignment of the data. To make it work on GCC since 4.7 and Clang as of 3.6, we instead use __builtin_assume_aligned(). I don't know which version of ICC first implemented this, but ICC 15 does and it also reports itself as GCC 4.9. Change-Id: I58bd914b9bdd0ed3349ba56fa78220ab06114852 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/corelib/tools/qarraydata.cpp')
0 files changed, 0 insertions, 0 deletions