Abstract deprecated and selectany for GCC and remove LLVM'ism where possible (dotnet...
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>
Wed, 20 Feb 2019 16:59:22 +0000 (11:59 -0500)
committerJan Kotas <jkotas@microsoft.com>
Wed, 20 Feb 2019 16:59:22 +0000 (08:59 -0800)
commitb46da5ddb44c49a6986a9a440ffac0b385dc3519
treeef851d115f58dd89e0fb005fd679b3ef380b9541
parentbadd733de8336b6064ed7bd4dfd49e71bc51ad52
Abstract deprecated and selectany for GCC and remove LLVM'ism where possible (dotnet/coreclr#22662)

* Abstract selectany

* Fix initializer element is not constant

src/corefx/System.Globalization.Native/pal_icushim.c:58:34: error: initializer element is not constant
 static const int MaxICUVersion = MinICUVersion + 20;

* Enable ms extensions

* Apply LLVM patterns to GCC

* Remove deprecated function

* Fix const conversion error

src/corefx/System.Globalization.Native/pal_calendarData.c:390:16: warning: passing argument 1 of ‘ures_close_ptr’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
ures_close(erasResBundle);

src/corefx/System.Globalization.Native/pal_calendarData.c:419:22: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
char* name = GetCalendarName(calendarId);

* Remove old compiler option

Commit migrated from https://github.com/dotnet/coreclr/commit/1a1bb292ab53c0c30d35dc396c7089c1da5b3c82
12 files changed:
src/coreclr/configurecompiler.cmake
src/coreclr/src/corefx/System.Globalization.Native/CMakeLists.txt
src/coreclr/src/corefx/System.Globalization.Native/pal_calendarData.c
src/coreclr/src/corefx/System.Globalization.Native/pal_icushim.c
src/coreclr/src/inc/cor.h
src/coreclr/src/inc/corinfo.h
src/coreclr/src/inc/holder.h
src/coreclr/src/inc/palclr.h
src/coreclr/src/pal/inc/pal.h
src/coreclr/src/scripts/genEtwProvider.py
src/coreclr/src/vm/appdomain.cpp
src/coreclr/src/vm/appdomain.hpp