[Bug c/61939] warn when __attribute__((aligned(x))) is ignored
rivanvx at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 19 16:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61939
Vedran Miletic <rivanvx at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rivanvx at gmail dot com
--- Comment #1 from Vedran Miletic <rivanvx at gmail dot com> ---
Confirmed still occurs in 6.2.1 on the following C++ code:
#include <numeric>
#include <vector>
float f(std::vector<float>& A, std::vector<float>& B)
{
__builtin_assume_aligned(A.data(), 64);
__builtin_assume_aligned(B.data(), 64);
return std::inner_product(A.begin(), A.end(), B.begin(), 0.f);
}
Compiled using -O3 -ffast-math -mavx2.
More information about the Gcc-bugs
mailing list