Frkaya/gcc fix 052919 (#24845)
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>
Thu, 30 May 2019 08:35:37 +0000 (04:35 -0400)
committerJan Vorlicek <janvorli@microsoft.com>
Thu, 30 May 2019 08:35:37 +0000 (10:35 +0200)
commit41832cedbb2d46362239d2b272964a39ca37cd89
treebba988e78374456f47a8803c112d4b017980ecae
parentd4fadf03b9964ba9a1bf96f5a2136c2c8f4f38fe
Frkaya/gcc fix 052919 (#24845)

* fix compilation with gcc7.x

In file included from src/inc/sstring.h:1029:0,
                 from src/inc/ex.h:19,
                 from src/inc/stgpool.h:28,
                 from src/inc/../md/inc/metamodel.h:18,
                 from src/inc/../md/inc/metamodelro.h:19,
                 from src/inc/metadata.h:17,
                 from src/inc/corpriv.h:21,
                 from src/md/compiler/stdafx.h:20,
                 from src/md/compiler/mdutil.cpp:12:
src/inc/sstring.inl: In member function ‘const WCHAR* SString::GetUnicode() const’:
src/inc/sstring.inl:650:5: error: nonnull argument ‘this’ compared to NULL [-Werror=nonnull-compare]
     if (this == NULL)
     ^~

add version check

* Use the abstracted version of __nodebug__

* cc1: warning: command line option ‘-fpermissive’ is valid for C++/ObjC++ but not for C
configurecompiler.cmake
src/jit/CMakeLists.txt
src/pal/inc/rt/cpp/emmintrin.h