[aspectc-user] Build failure with Clang 3.7.1
Dan Fandrich
dan at coneharvesters.com
Sat Feb 20 16:32:23 CET 2016
I'm getting a build failure with the daily source package of aspectc++ with
clang 3.7.1, starting with the check for specific clang versions:
#error "Invalid clang version used! Only 3.4 and 3.6.2 are supported by this code."
It would be nice if the upcoming release supported the latest Clang, especially
since Aspect C++ releases are pretty infrequent. In fact, version 3.8.0
of clang was supposed to have been tagged two days ago should be released any
day now.
The following patch makes it compile, but there are warnings about enumeration
value not handled so may need to be adjusted to properly handle the new enums
rather than just remove the removed ones.
--- aspectc++/AspectC++/ClangAdjustedTypePrinter.cc.orig 2016-02-20 12:53:41.603561765 +0000
+++ aspectc++/AspectC++/ClangAdjustedTypePrinter.cc 2016-02-20 12:56:37.057777807 +0000
@@ -642,9 +642,6 @@
case CC_AAPCS_VFP:
OS << " __attribute__((pcs(\"aapcs-vfp\")))";
break;
- case CC_PnaclCall:
- OS << " __attribute__((pnaclcall))";
- break;
case CC_IntelOclBicc:
OS << " __attribute__((intel_ocl_bicc))";
break;
@@ -1256,7 +1253,6 @@
OS << ')';
break;
}
- case AttributedType::attr_pnaclcall: OS << "pnaclcall"; break;
case AttributedType::attr_inteloclbicc: OS << "inteloclbicc"; break;
}
OS << "))";
--- aspectc++/AspectC++/ClangBinding.cc.orig 2016-02-20 13:51:25.088377696 +0000
+++ aspectc++/AspectC++/ClangBinding.cc 2016-02-20 13:51:33.445301183 +0000
@@ -3,7 +3,7 @@
#if CLANG_VERSION_MAJOR == 3 && CLANG_VERSION_MINOR == 4 && !defined(CLANG_VERSION_PATCHLEVEL)
#elif CLANG_VERSION_MAJOR == 3 && CLANG_VERSION_MINOR == 6 && CLANG_VERSION_PATCHLEVEL == 2
#else
-#error "Invalid clang version used! Only 3.4 and 3.6.2 are supported by this code."
+#warning "Invalid clang version used! Only 3.4 and 3.6.2 are supported by this code."
#endif
#include "ClangIntroSema.h"
More information about the aspectc-user
mailing list