hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wan...@apache.org
Subject incubator-hawq git commit: HAWQ-233. Fix HAWQ initialization failed on Centos7
Date Wed, 09 Dec 2015 03:30:01 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master a9344ab62 -> 3c777449e


HAWQ-233. Fix HAWQ initialization failed on Centos7


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/3c777449
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/3c777449
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/3c777449

Branch: refs/heads/master
Commit: 3c777449ee8eb11227281394f10c4fb5faf37d77
Parents: a9344ab
Author: Xiaolin Zhang <zhangxl@zetyun.com>
Authored: Wed Dec 9 10:27:25 2015 +0800
Committer: Xiaolin Zhang <zhangxl@zetyun.com>
Committed: Wed Dec 9 10:27:25 2015 +0800

----------------------------------------------------------------------
 configure    | 26 ++++++++++++++++++++++++++
 configure.in |  2 ++
 2 files changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/3c777449/configure
----------------------------------------------------------------------
diff --git a/configure b/configure
index 4d11d0b..e6ffa43 100755
--- a/configure
+++ b/configure
@@ -4538,6 +4538,32 @@ $as_echo "no" >&6; }
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
+  # Disable optimizations that do aggresive-loop-optimization for variable length array;
needed for gcc 4.8+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-aggressive-loop-optimizations"
>&5
+$as_echo_n "checking if $CC supports -fno-aggressive-loop-optimizations... " >&6;
}
+pgac_save_CFLAGS=$CFLAGS
+CFLAGS="$pgac_save_CFLAGS -fno-aggressive-loop-optimizations"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+  CFLAGS="$pgac_save_CFLAGS"
+                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
 elif test "$ICC" = yes; then
   # Intel's compiler has a bug/misoptimization in checking for
   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/3c777449/configure.in
----------------------------------------------------------------------
diff --git a/configure.in b/configure.in
index 30c8094..feb12f0 100644
--- a/configure.in
+++ b/configure.in
@@ -341,6 +341,8 @@ if test "$GCC" = yes -a "$ICC" = no; then
   PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing])
   # Disable optimizations that assume no overflow; needed for gcc 4.3+
   PGAC_PROG_CC_CFLAGS_OPT([-fwrapv])
+  # Disable optimizations that do aggresive-loop-optimization for variable length array;
needed for gcc 4.8+
+  PGAC_PROG_CC_CFLAGS_OPT([-fno-aggressive-loop-optimizations])
 elif test "$ICC" = yes; then
   # Intel's compiler has a bug/misoptimization in checking for
   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.


Mime
View raw message