aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeHash.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-08-17 11:15:46 +0200
committerAndres Freund <andres@anarazel.de>2015-08-17 11:23:31 +0200
commit2c5c11ae9e0c5f4605fb9cdd2e8bd94fe0a06d95 (patch)
treef717597e695e9f582b1b02a253508ed2f8a2a4c2 /src/backend/executor/nodeHash.c
parent9a18a2bfb9f93e4a1aa405e752608746e04619f2 (diff)
downloadpostgresql-2c5c11ae9e0c5f4605fb9cdd2e8bd94fe0a06d95.tar.gz
postgresql-2c5c11ae9e0c5f4605fb9cdd2e8bd94fe0a06d95.zip
Improve configure test for the sse4.2 crc instruction.
With optimizations enabled at least one compiler, clang 3.7, optimized away the crc intrinsics knowing that the result went on unused and has no side effects. That can trigger errors in code generation when the intrinsic is used, as we chose to use the intrinsics without any additional compiler flag. Return the computed value to prevent that. With some more pedantic warning flags (-Wold-style-definition) the configure test failed to recognize the existence of _mm_crc32_u* intrinsics due to an independent warning in the test because the test turned on -Werror, but that's not actually needed here. Discussion: 20150814092039.GH4955@awork2.anarazel.de Backpatch: 9.5, where the use of crc intrinsics was integrated.
Diffstat (limited to 'src/backend/executor/nodeHash.c')
0 files changed, 0 insertions, 0 deletions