Changeset: 06b1e5e02633 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=06b1e5e02633
Modified Files:
        configure.ag
        monetdb5/optimizer/opt_jit.h
Branch: Jul2017
Log Message:

FreeBSD's clang is too old.


diffs (36 lines):

diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -627,16 +627,11 @@ AS_VAR_IF([enable_strict], [yes], [
                MCHECK_ADD_FLAG([-Wduplicated-branches])
                MCHECK_ADD_FLAG([-Wrestrict])
 
-               # With clang 2.8, 3.3, 5.0 (no other tested) and gcc < 4.5
-               # (tested 3.4.6, 4.2.1, 4.3.2, 4.4.4, 4.4.5, 4.5.1, 4.5.2),
-               # "-Wunreachable-code" triggers numerous "will never be
-               # executed" (at least) in our stream code, mostly (if
-               # not all) false positives, though, as well as in
-               # YACC/BISON-generated code; thus, we do not use
-               # "-Wunreachable-code" with clang and gcc < 4.5 .
-               # At the same time, Apple deprecated OpenSSL in favour of
-               # their own CommonCrypto API.  We don't mind about that.
-               MCHECK_ADD_FLAG([-Wunreachable-code])
+               # We can deal with -Wunrechable-code on modern
+               # compilers, but FreeBSD's clang (3.4.1) is too old.
+               AS_CASE([$CC_ver],
+                       [clang-3.*], [],
+                       [MCHECK_ADD_FLAG([-Wunreachable-code])])
 
                dnl  Our code is not (yet?) up to these:
                dnl  MCHECK_ADD_FLAG([-pedantic-errors])
diff --git a/monetdb5/optimizer/opt_jit.h b/monetdb5/optimizer/opt_jit.h
--- a/monetdb5/optimizer/opt_jit.h
+++ b/monetdb5/optimizer/opt_jit.h
@@ -13,6 +13,6 @@
 
 mal_export str OPTjitImplementation(Client cntxt, MalBlkPtr mb, MalStkPtr stk, 
InstrPtr p);
 
-#define OPTDEBUGjit  if (0)
+#define OPTDEBUGjit  if (/* DISABLES CODE */ (0))
 
 #endif
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to