forked from Lainports/freebsd-ports
For some reason, even though ARCH_X86 isn't defined on powerpc64, clang doesn't finish the function on #ifndef ARCH_X86, but tries to compile further and fails at x86-specific assembly. PR: 242462 Approved by: yuri (maintainer), mentors (implicit approval)
21 lines
315 B
C++
21 lines
315 B
C++
--- src/common/fpu.cc.orig 2019-12-05 16:58:12 UTC
|
|
+++ src/common/fpu.cc
|
|
@@ -33,9 +33,7 @@ FPU::FPU ()
|
|
|
|
_flags = Flags (0);
|
|
|
|
-#ifndef ARCH_X86
|
|
- return;
|
|
-#endif
|
|
+#ifdef ARCH_X86
|
|
|
|
#ifndef USE_X86_64_ASM
|
|
asm volatile (
|
|
@@ -108,6 +106,7 @@ FPU::FPU ()
|
|
free (fxbuf);
|
|
}
|
|
}
|
|
+#endif
|
|
}
|
|
|
|
FPU::~FPU ()
|