summaryrefslogtreecommitdiff
path: root/src/pal/inc/pal_mstypes.h
AgeCommit message (Collapse)AuthorFilesLines
2019-02-09Set visibility option to hidden (#21924)Adeel Mujahid1-2/+5
2018-12-03Don't typedef intptr_t/uintptr_t when PAL_STDCPP_COMPAT is defined (#21165)Ilia1-6/+0
Bug: 20766
2017-04-26Enable build with clang 4.0 (#11226)Jan Vorlicek1-1/+1
This change enables build with clang 4.0 and fixes a bunch of new errors that the stricter compiler was reporting.
2017-03-07[x86/Linux] CDECL as default P/Invoke Calling Convetion (#9977)Jonghyun Park1-2/+2
* [x86/Linux] CDECL as default P/Invoke Calling Convetion
2017-01-21Remove PLATFORM_UNIX and FEATURE_PAL checks in PAL (#8982)Jan Vorlicek1-10/+0
This change removes all ifdefs for PLATFORM_UNIX and FEATURE_PAL from PAL and also removes dead code that was never compiled in PAL due to both of them being always defined for PAL.
2016-12-14[x86/Linux] Fix incorrect __fastcall definition (#8585)Jonghyun Park1-6/+0
In x86/Linux, __fastcall is defined as __stdcall which causes stack corruption issue for the following functions: - HelperMethodFrameRestoreState - LazyMachStateCaptureState This commit removes __fastcall definition as clang recognize __fastcall.
2016-09-07Fix strict aliasing violation from conditional typedef of wchar_t by ↵kchoi1-0/+5
building entire project as C++ for Unix (#6801) Enable building CoreCLR as C++ project on Unix This series of patches fixes the strict aliasing violation from the conditional typedef of wchar_t in src/pal/inc/pal_char16.h:40 * rename c files to cpp * modify all cmake files to change .c files to .cpp * apply c++ linkage to templates
2016-03-05Replace all uses of __LINUX__ with the lower caseGeunsik Lim1-2/+2
According to https://sourceforge.net/p/predef/wiki/OperatingSystems/ (Pre-defined Compiler Macros) and http://www.faqs.org/docs/Linux-HOWTO/GCC-HOWTO.html (Porting and compiling:Automatically defined symbols), the __linux__ marcro is the right way to detect systems based on the Linux kernel and is the POSIX compliant. Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2016-03-03Fix ARM build regressionBen Pye1-0/+2
2016-01-27Update license headersdotnet-bot1-4/+3
2016-01-05Fix buffer overrun and _atoi64 in ildasmKyungwoo Lee1-2/+1
PrettyPrintSigature allocates only 16 byte char array for prefix name, but the input string was synthesized from an 64 bit address -- szVarPrefix or szArgPrefix. The maximum number of decimal digits for 64 bit value is 21, which overflows the allocated buffer. Note actually ildasm even prepends '@' and appends '0' for the prefix name. The fix is to declare MAX_PREFIX_SIZE as 32 and use it everywhere for the purpose. This also fixes '_atoi64' which actually returns 32 bit value using '{PAL_}atol' in Unix. Instead, I imports 'atoll' for the use of '_atoi64', which correctly converts string to 64 bit integer.
2015-10-11This enables Lttng Logging for CoreClr,Rama1-0/+1
The Tracepoint Providers are built as a separate shared object called libcoreclrtraceptprovider and it is available in the same directory as libcoreclr.so By Default the ability of Tracing will not be present To enable the ability of Tracing, the apps need to be run like: LD_PRELOAD=libcoreclrtraceptprovider.so ./corerun HelloWorld.exe For now to change Xplat Event Logging mechanism add any events to: <root>/src/vm/ClrEtwAll.man Then regenerate files by running : <root>/src/inc/genXplatLtnng.pl Conflicts: Documentation/building/linux-instructions.md
2015-10-06code: Fix redefined macro warning.Peter Jas1-2/+4
For example, in this log: https://dotnet-ci.cloudapp.net/job/dotnet_coreclr_freebsd_debug_prtest/1082/consoleFull search for '-Wmacro-redefined'. All 26 occurences are pointing to this line.
2015-08-27Fix build regression for ARM.Ben Pye1-2/+8
Allow mscorlib.dll to be built for non x64 platforms on Linux.
2015-08-22Enable gcroot and other gc related sos commands.Mike McLaughlin1-0/+5
The "gcroot" command currently doesn't work with lldb 3.6 (our default package), but works fine with lldb 3.7.0. lldb 3.6 terminates with (lldb) sos GCRoot 00007fffcc004ce8 *** Error in `lldb-3.6': munmap_chunk(): invalid pointer: 0x000000000184cde8 *** PAL_STDCPP_COMPAT is the define that the VS team added to allow the xplat headers to be used. This is neccessary for the whole SOS directory now because gcroot and other gc commands need unorderd_map, unorderd_set, etc. from the stdlib. Had to change all wchar_t to WCHAR because the xplat stdlib default is UTF32. Had to rename and provide macros that conflict with the stdlib: wcslen -> _wcslen wcsncmp -> _wcsncmp wcsrchr -> _wcsrchr wcscmp -> _wcscmp wcschr -> _wcschr wcscspn -> _wcscspn wcscat -> _wcscat __in -> ___in __out -> ___out max(a, b) -> _max(a, b) min(a, b) -> _min(a, b) Had to ifdef PAL_STDCPP_COMPAT a lot more of pal.h, palrt.h and some other header files. Changed a bunch of L"" to W("").
2015-07-24Add ARM target for CoreCLR on Linux.Ben Pye1-1/+11
c_runtime/vprintf/test1 is disabled as casting NULL to va_list is against the C specification. Fix SetFilePointer tests on 32 bit platforms. Define _FILE_OFFSET_BITS=64 so that we have long file support on 32 bit platforms. Implement context capture/restore for ARM. Link libgcc_s before libunwind on ARM so C++ exceptions work. Translate armasm to gas syntax. Specify Thumb, VFPv3, ARMv7 for the ARM target. Add ARM configuration to mscorlib build Implement GetLogicalProcessorCacheSizeFromOS in PAL. Set UNWIND_CONTEXT_IS_UCONTEXT_T from configure check.
2015-06-04Changes necessary to make PAL headers compatible with c++ headers,Prem Ramanathan1-10/+22
allowing them to be used side by side with c++11 headers. Contains few fixes to PAL library as well.
2015-03-26Fix about 12 kinds of warnings over the codebaseJan Vorlicek1-1/+2
This change fixes: 1) Member initiazalization order in class constructor didn't correspond to the member order in some classes 2) Objects with vtables were copied via memcpy. While this is intentional, cast of the pointers to void* is required to silence clang warning 3) Switch case statements containing values of different enums 4) Casting int to pointer 5) Missing return value in methods with _ASSERTE 6) Class name classifier on methods in the .h 7) Invalid position of the DECLSPEC_ALIGN at few places - it had no effect 8) Invalid position of the 'used' attribute 9) Issue with comparing holders to NULL 10) Operator 'new' returning NULL without being marked with throw() or noexcept 11) Variables marked as 'extern' at the declaration / initialization place 12) Data structure declared as struct at one place and forward declared as class at another Some disabled warnings were no longer happening, so options to disable them were removed too
2015-02-11Clean up compiler warnings on the OSX buildGeoff Norton1-0/+2
2015-01-30Initial commit to populate CoreCLR repo dotnet-bot1-0/+693
[tfs-changeset: 1407945]