diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2017-01-18 01:49:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-18 01:49:55 +0100 |
commit | 968b13576d3ef2bb585e860f012a7eedb97ab808 (patch) | |
tree | 16498d16e847125185ba83374e2caf0b4c10ed23 /src/pal/tests | |
parent | 5c10d232f1cb15161e5c098d0ceddec9773ef4d5 (diff) | |
download | coreclr-968b13576d3ef2bb585e860f012a7eedb97ab808.tar.gz coreclr-968b13576d3ef2bb585e860f012a7eedb97ab808.tar.bz2 coreclr-968b13576d3ef2bb585e860f012a7eedb97ab808.zip |
Remove obsolete platforms ifdefs from PAL (#8971)
There were many ifdefs for obsolete platforms and processors like AIX, HPUX,
SPARC, ALPHA etc. This change is a cleanup that removes them.
Diffstat (limited to 'src/pal/tests')
5 files changed, 3 insertions, 19 deletions
diff --git a/src/pal/tests/palsuite/composite/synchronization/nativecriticalsection/pal_composite_native_cs.cpp b/src/pal/tests/palsuite/composite/synchronization/nativecriticalsection/pal_composite_native_cs.cpp index 40efacd7c9..0ccd5c9419 100644 --- a/src/pal/tests/palsuite/composite/synchronization/nativecriticalsection/pal_composite_native_cs.cpp +++ b/src/pal/tests/palsuite/composite/synchronization/nativecriticalsection/pal_composite_native_cs.cpp @@ -445,13 +445,9 @@ ULONGLONG GetTicks(void) asm volatile("rdtsc":"=a" (a), "=d" (d)); return ((ULONGLONG)((unsigned int)(d)) << 32) | (unsigned int)(a); #else -#if defined(__sparc__) || (defined (_HPUX_) && defined(__ia64__)) - return (ULONGLONG)gethrtime(); -#else // #error Don''t know how to get ticks on this platform return (ULONGLONG)gethrtime(); -#endif // __sparc__ -#endif // _X86_ +#endif // i386 } diff --git a/src/pal/tests/palsuite/composite/synchronization/nativecs_interlocked/pal_composite_native_cs.cpp b/src/pal/tests/palsuite/composite/synchronization/nativecs_interlocked/pal_composite_native_cs.cpp index 4c19d3b0de..ec5c1c365f 100644 --- a/src/pal/tests/palsuite/composite/synchronization/nativecs_interlocked/pal_composite_native_cs.cpp +++ b/src/pal/tests/palsuite/composite/synchronization/nativecs_interlocked/pal_composite_native_cs.cpp @@ -449,13 +449,9 @@ ULONGLONG GetTicks(void) asm volatile("rdtsc":"=a" (a), "=d" (d)); return ((ULONGLONG)((unsigned int)(d)) << 32) | (unsigned int)(a); #else -#if defined(__sparc__) || (defined (_HPUX_) && defined(__ia64__)) - return (ULONGLONG)gethrtime(); -#else // #error Don''t know how to get ticks on this platform return (ULONGLONG)gethrtime(); -#endif // __sparc__ -#endif // _X86_ +#endif // i386 } diff --git a/src/pal/tests/palsuite/file_io/ReadFile/test2/ReadFile.cpp b/src/pal/tests/palsuite/file_io/ReadFile/test2/ReadFile.cpp index f16858e573..789e001700 100644 --- a/src/pal/tests/palsuite/file_io/ReadFile/test2/ReadFile.cpp +++ b/src/pal/tests/palsuite/file_io/ReadFile/test2/ReadFile.cpp @@ -30,11 +30,7 @@ const char* szResultsFile = "Results.txt"; //Previously number of tests was 6, now 4 refer VSW 312690 #define NOOFTESTS 4 -#ifdef __sparc__ -const int PAGESIZE = 8192; -#else // __sparc__ const int PAGESIZE = 4096; -#endif // __sparc__ char *readBuffer; diff --git a/src/pal/tests/palsuite/file_io/WriteFile/test2/WriteFile.cpp b/src/pal/tests/palsuite/file_io/WriteFile/test2/WriteFile.cpp index 24c148afb8..9345bc6c48 100644 --- a/src/pal/tests/palsuite/file_io/WriteFile/test2/WriteFile.cpp +++ b/src/pal/tests/palsuite/file_io/WriteFile/test2/WriteFile.cpp @@ -20,11 +20,7 @@ char* writeBuffer; const char* szWritableFile = "Writeable.txt"; const char* szResultsFile = "Results.txt"; -#ifdef __sparc__ -const int PAGESIZE = 8192; -#else // __sparc__ const int PAGESIZE = 4096; -#endif // __sparc__ BOOL writeTest(DWORD dwByteCount, DWORD dwBytesWrittenResult, BOOL bResult) { diff --git a/src/pal/tests/palsuite/miscellaneous/InterlockedExchange64/test1/test.cpp b/src/pal/tests/palsuite/miscellaneous/InterlockedExchange64/test1/test.cpp index 12e8b50580..bd26a547cc 100644 --- a/src/pal/tests/palsuite/miscellaneous/InterlockedExchange64/test1/test.cpp +++ b/src/pal/tests/palsuite/miscellaneous/InterlockedExchange64/test1/test.cpp @@ -74,7 +74,7 @@ int __cdecl main(int argc, char *argv[]) { #endif } -#endif //defined(BIT64) && defined(_IA64_) +#endif // BIT64 && PLATFORM_UNIX PAL_Terminate(); return PASS; } |