diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2015-02-04 16:59:45 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2015-02-05 07:34:56 -0800 |
commit | 2e63a8004caf9ab9d85a7dee9867c8bd84eb7882 (patch) | |
tree | 4efd7d4e5584f2cad38b0cc87bb7fc8208b0087f /src | |
parent | 02084af832c2900cf6eac2a168c41f261409be97 (diff) | |
download | coreclr-2e63a8004caf9ab9d85a7dee9867c8bd84eb7882.tar.gz coreclr-2e63a8004caf9ab9d85a7dee9867c8bd84eb7882.tar.bz2 coreclr-2e63a8004caf9ab9d85a7dee9867c8bd84eb7882.zip |
Build fixes for clang3.7 and systems without stropt.h.
- Fix setup-compiler-clang to detect binaries outside of /usr/bin
- Fix ambiguously-sized cmp instructions when comparing g_GCShadow and 0
- Remove references to stropt.h. None of the defiinitions in this header
are used by the product, and this header is not present on certain
systems.
Diffstat (limited to 'src')
-rw-r--r-- | src/pal/src/config.h | 3 | ||||
-rw-r--r-- | src/pal/src/config.h.in | 3 | ||||
-rw-r--r-- | src/pal/src/init/pal.cpp | 3 | ||||
-rw-r--r-- | src/pal/src/synchmgr/synchmanager.cpp | 3 | ||||
-rw-r--r-- | src/pal/src/thread/process.cpp | 3 | ||||
-rw-r--r-- | src/pal/src/thread/thread.cpp | 3 | ||||
-rw-r--r-- | src/pal/src/thread/threadsusp.cpp | 3 | ||||
-rwxr-xr-x | src/pal/tools/setup-compiler-clang.sh | 4 | ||||
-rw-r--r-- | src/vm/amd64/jithelpers_fast.S | 2 | ||||
-rw-r--r-- | src/vm/amd64/jithelpers_slow.S | 2 |
10 files changed, 4 insertions, 25 deletions
diff --git a/src/pal/src/config.h b/src/pal/src/config.h index 90ba8356ed..554061ddfc 100644 --- a/src/pal/src/config.h +++ b/src/pal/src/config.h @@ -55,9 +55,6 @@ because gcc will complain about %I64d and %S /* Define as 1 if you have inttypes.h. */ #define HAVE_INTTYPES_H 1 -/* Define as 1 if you have stropts.h. */ -#define HAVE_STROPTS_H 1 - /* Define as 1 if you have sys/vmparam.h. */ #define HAVE_SYS_VMPARAM_H 0 diff --git a/src/pal/src/config.h.in b/src/pal/src/config.h.in index 8b3f82201b..462072b31c 100644 --- a/src/pal/src/config.h.in +++ b/src/pal/src/config.h.in @@ -56,9 +56,6 @@ because gcc will complain about %I64d and %S /* Define as 1 if you have inttypes.h. */ #define HAVE_INTTYPES_H 0 -/* Define as 1 if you have stropts.h. */ -#define HAVE_STROPTS_H 0 - /* Define as 1 if you have sys/vmparam.h. */ #define HAVE_SYS_VMPARAM_H 0 diff --git a/src/pal/src/init/pal.cpp b/src/pal/src/init/pal.cpp index 5259046198..ae1fa50b60 100644 --- a/src/pal/src/init/pal.cpp +++ b/src/pal/src/init/pal.cpp @@ -59,9 +59,6 @@ Abstract: #else #include "pal/fakepoll.h" #endif // HAVE_POLL -#if HAVE_STROPTS_H -#include <stropts.h> -#endif // HAVE_STROPTS_H #if defined(__APPLE__) #include <sys/sysctl.h> diff --git a/src/pal/src/synchmgr/synchmanager.cpp b/src/pal/src/synchmgr/synchmanager.cpp index facd727972..4a90220150 100644 --- a/src/pal/src/synchmgr/synchmanager.cpp +++ b/src/pal/src/synchmgr/synchmanager.cpp @@ -35,9 +35,6 @@ Abstract: #else #include "pal/fakepoll.h" #endif // HAVE_POLL -#if HAVE_STROPTS_H -#include <stropts.h> -#endif // HAVE_STROPTS_H namespace CorUnix { diff --git a/src/pal/src/thread/process.cpp b/src/pal/src/thread/process.cpp index 47a708cf45..6a2ee9ad8c 100644 --- a/src/pal/src/thread/process.cpp +++ b/src/pal/src/thread/process.cpp @@ -41,9 +41,6 @@ Abstract: #include <sys/types.h> #include <signal.h> -#if HAVE_STROPTS_H -#include <stropts.h> -#endif // HAVE_STROPTS_H #include <sys/wait.h> #include <sys/time.h> #include <sys/resource.h> diff --git a/src/pal/src/thread/thread.cpp b/src/pal/src/thread/thread.cpp index 73dda7e864..0da49e3f23 100644 --- a/src/pal/src/thread/thread.cpp +++ b/src/pal/src/thread/thread.cpp @@ -48,9 +48,6 @@ Abstract: #include "pal/fakepoll.h" #endif // HAVE_POLL #include <limits.h> -#if HAVE_STROPTS_H -#include <stropts.h> -#endif // HAVE_STROPTS_H #if HAVE_SYS_LWP_H #include <sys/lwp.h> // If we don't have sys/lwp.h but do expect to use _lwp_self, declare it to silence compiler warnings diff --git a/src/pal/src/thread/threadsusp.cpp b/src/pal/src/thread/threadsusp.cpp index e63c5769ce..4b356efcdd 100644 --- a/src/pal/src/thread/threadsusp.cpp +++ b/src/pal/src/thread/threadsusp.cpp @@ -50,9 +50,6 @@ Revision History: #include <stddef.h> #include <sys/stat.h> #include <limits.h> -#if HAVE_STROPTS_H -#include <stropts.h> -#endif // HAVE_STROPTS_H #if defined(_AIX) // AIX requires explicit definition of the union semun (see semctl man page) diff --git a/src/pal/tools/setup-compiler-clang.sh b/src/pal/tools/setup-compiler-clang.sh index 4f85f5866d..949872c608 100755 --- a/src/pal/tools/setup-compiler-clang.sh +++ b/src/pal/tools/setup-compiler-clang.sh @@ -3,5 +3,5 @@ # This file sets the environment to be used for building with clang. # -export CC=/usr/bin/clang -export CXX=/usr/bin/clang++ +export CC=$(which clang) +export CXX=$(which clang++) diff --git a/src/vm/amd64/jithelpers_fast.S b/src/vm/amd64/jithelpers_fast.S index 457d96e62e..cdaa48e1a8 100644 --- a/src/vm/amd64/jithelpers_fast.S +++ b/src/vm/amd64/jithelpers_fast.S @@ -150,7 +150,7 @@ LEAF_ENTRY JIT_ByRefWriteBarrier, _TEXT // **ALSO update the shadow GC heap if that is enabled** // Do not perform the work if g_GCShadow is 0 PREPARE_EXTERNAL_VAR g_GCShadow, rax - cmp [rax], 0 + cmp qword ptr [rax], 0 je NoShadow_ByRefWriteBarrier // If we end up outside of the heap don't corrupt random memory diff --git a/src/vm/amd64/jithelpers_slow.S b/src/vm/amd64/jithelpers_slow.S index 1aed8b99e8..32b0d5fdaf 100644 --- a/src/vm/amd64/jithelpers_slow.S +++ b/src/vm/amd64/jithelpers_slow.S @@ -17,7 +17,7 @@ LEAF_ENTRY JIT_WriteBarrier_Debug, _TEXT // **ALSO update the shadow GC heap if that is enabled** // Do not perform the work if g_GCShadow is 0 PREPARE_EXTERNAL_VAR g_GCShadow, rax - cmp [rax], 0 + cmp qword ptr [rax], 0 je NoShadow // If we end up outside of the heap don't corrupt random memory |