Enable clang 10,11 and gcc 10 detection (#42583)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Fri, 25 Sep 2020 19:28:24 +0000 (22:28 +0300)
committerGitHub <noreply@github.com>
Fri, 25 Sep 2020 19:28:24 +0000 (21:28 +0200)
eng/native/init-compiler.sh
src/coreclr/src/gc/gc.cpp

index ff0f69c..3821d76 100755 (executable)
@@ -45,8 +45,8 @@ if [[ -z "$CLR_CC" ]]; then
     # Set default versions
     if [[ -z "$majorVersion" ]]; then
         # note: gcc (all versions) and clang versions higher than 6 do not have minor version in file name, if it is zero.
-        if [[ "$compiler" == "clang" ]]; then versions=( 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
-        elif [[ "$compiler" == "gcc" ]]; then versions=( 9 8 7 6 5 4.9 ); fi
+        if [[ "$compiler" == "clang" ]]; then versions=( 11 10 9 8 7 6.0 5.0 4.0 3.9 3.8 3.7 3.6 3.5 )
+        elif [[ "$compiler" == "gcc" ]]; then versions=( 10 9 8 7 6 5 4.9 ); fi
 
         for version in "${versions[@]}"; do
             parts=(${version//./ })
index 8d21e36..e2f4397 100644 (file)
@@ -26147,7 +26147,7 @@ void gc_heap::gc_thread_stub (void* arg)
 
     // server GC threads run at a higher priority than normal.
     GCToOSInterface::BoostThreadPriority();
-    _alloca (256*heap->heap_number);
+    void* tmp = _alloca (256*heap->heap_number);
     heap->gc_thread_function();
 }
 #ifdef _MSC_VER