Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Balykov <g.balykov@samsung.com>2021-06-10 02:28:45 +0300
committerGitHub <noreply@github.com>2021-06-10 02:28:45 +0300
commitf6c52b913b2449297c54f9ab4802812d6c3bf7eb (patch)
tree2f0ad14abb0f32c2c3411af7d954a11067ecac4e /src/coreclr/pal
parent626ceb76db44ff3fa908c732b3f97322b406cdce (diff)
Fix gcc armel/arm64 build (#53220)
* Fix gcc armel build Mostly signed/unsigned comparisons, etc. * Fix gcc arm64 build
Diffstat (limited to 'src/coreclr/pal')
-rw-r--r--src/coreclr/pal/src/CMakeLists.txt2
-rw-r--r--src/coreclr/pal/src/misc/jitsupport.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/pal/src/CMakeLists.txt b/src/coreclr/pal/src/CMakeLists.txt
index 49c7b1ed468..ba13ab392f0 100644
--- a/src/coreclr/pal/src/CMakeLists.txt
+++ b/src/coreclr/pal/src/CMakeLists.txt
@@ -114,7 +114,7 @@ if(CLR_CMAKE_HOST_ARCH_ARM)
endif()
endif(CLR_CMAKE_HOST_ARCH_ARM)
-if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
+if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND (CLR_CMAKE_HOST_ARCH_AMD64 OR CLR_CMAKE_HOST_ARCH_I386))
add_compile_options(-Wa,--divide)
endif()
diff --git a/src/coreclr/pal/src/misc/jitsupport.cpp b/src/coreclr/pal/src/misc/jitsupport.cpp
index 8678a479f10..973de4033e3 100644
--- a/src/coreclr/pal/src/misc/jitsupport.cpp
+++ b/src/coreclr/pal/src/misc/jitsupport.cpp
@@ -82,7 +82,7 @@ static const CpuCapability CpuCapabilities[] = {
// If the capability name is not recognized or unused at present, zero is returned.
static unsigned long LookupCpuCapabilityFlag(const char* start, size_t length)
{
- for (int i = 0; i < _countof(CpuCapabilities); i++)
+ for (size_t i = 0; i < _countof(CpuCapabilities); i++)
{
const char* capabilityName = CpuCapabilities[i].name;
if ((length == strlen(capabilityName)) && (memcmp(start, capabilityName, length) == 0))