mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
29f724f79f
occur (for example, -march=core2 used to break build). Not a FreeBSD problem even -- Linux crowd was bitten by this too (and misdiagnosed it). Our package-building does not include the flag, which is why we haven't seen this before. Attempt to help configure better detect the architecture and CPU-capabilities -- and use assembler-implementations of various routines, where possible. ("make check" is almost 30% faster now) Ensure, SSE2-specific code builds properly with clang as well as gcc. Ensure, the author's "make check" runs as regression-test. Add another patch found on SourceForge. (Attempt to) unbreak on PowerPC -- untested. Bump PORTREVISION. Take maintainership for the time being, to deal with any fallout.
22 lines
889 B
Plaintext
22 lines
889 B
Plaintext
Fix the SSE2-specific code for clang -- it differs from GCC in this.
|
|
--- sha384.c 2009-06-18 05:14:35.000000000 -0400
|
|
+++ sha384.c 2014-04-27 17:15:13.000000000 -0400
|
|
@@ -131,6 +131,6 @@
|
|
#ifdef OPTIMIZE_SSE2
|
|
|
|
- # if defined(_MSC_VER) || defined (__INTEL_COMPILER)
|
|
- static const __m64 MASK = { 0x00FF00FF00FF00FF00 };
|
|
+ # if defined(_MSC_VER) || defined (__INTEL_COMPILER) || defined(__clang__)
|
|
+ static const __m64 MASK = { 0x00FF00FF00FF00FF };
|
|
# elif defined(__GNUC__)
|
|
static const __m64 MASK = { 0x00FF00FF, 0x00FF00FF };
|
|
--- sha512.c 2009-06-18 05:15:57.000000000 -0400
|
|
+++ sha512.c 2014-04-27 17:15:47.000000000 -0400
|
|
@@ -131,5 +131,5 @@
|
|
{
|
|
#ifdef OPTIMIZE_SSE2
|
|
- # if defined(_MSC_VER) || defined(__INTEL_COMPILER)
|
|
+ # if defined(_MSC_VER) || defined(__INTEL_COMPILER) || defined(__clang__)
|
|
static const __m64 MASK = { 0x00FF00FF00FF00FF };
|
|
# elif defined(__GNUC__)
|