Hi ports --
phessler@'s latest arm64 bulk noted that lang/flang/driver is broken on
arm64.
It turns out that it's a bug in the clang optimizer (?). Turning off
optimizations for just that one file fixes the build.
I realize that it is not ideal, but I don't know enough about clang on
arm64 to fix the problem. However, I would like to have flang working
again on arm64.
With this diff, all of flang builds and works and the NIST F77 test
suite passes.
OK?
~Brian
Index: patches/patch-lib_AST_ASTContext_cpp
===================================================================
RCS file: patches/patch-lib_AST_ASTContext_cpp
diff -N patches/patch-lib_AST_ASTContext_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-lib_AST_ASTContext_cpp 28 Apr 2019 03:26:41 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Index: lib/AST/ASTContext.cpp
+--- lib/AST/ASTContext.cpp.orig
++++ lib/AST/ASTContext.cpp
+@@ -11,6 +11,10 @@
+ //
+ //===----------------------------------------------------------------------===//
+
++#ifdef __aarch64__
++#pragma clang optimize off
++#endif
++
+ #include "clang/AST/ASTContext.h"
+ #include "CXXABI.h"
+ #include "clang/AST/APValue.h"