Skip to content

Commit 20074e3

Browse files
committed
Move code
1 parent 9603601 commit 20074e3

File tree

10 files changed

+3
-238
lines changed

10 files changed

+3
-238
lines changed

compiler-rt/cmake/Modules/AddCompilerRT.cmake

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -582,23 +582,6 @@ macro(add_compiler_rt_script name)
582582
DESTINATION ${COMPILER_RT_INSTALL_BINARY_DIR})
583583
endmacro(add_compiler_rt_script src name)
584584

585-
macro(add_compiler_rt_cfg target_name file_name component)
586-
set(src_file "${CMAKE_CURRENT_SOURCE_DIR}/${file_name}")
587-
get_compiler_rt_output_dir(${COMPILER_RT_DEFAULT_TARGET_ARCH} output_dir)
588-
set(dst_file "${output_dir}/${file_name}")
589-
add_custom_command(OUTPUT ${dst_file}
590-
DEPENDS ${src_file}
591-
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src_file} ${dst_file}
592-
COMMENT "Copying ${file_name}...")
593-
add_custom_target(${target_name} DEPENDS ${dst_file})
594-
install(FILES ${file_name}
595-
DESTINATION ${COMPILER_RT_INSTALL_LIBRARY_DIR}
596-
COMPONENT ${component})
597-
add_dependencies(${component} ${target_name})
598-
599-
set_target_properties(${target_name} PROPERTIES FOLDER "Compiler-RT Misc")
600-
endmacro()
601-
602585
# Builds custom version of libc++ and installs it in <prefix>.
603586
# Can be used to build sanitized versions of libc++ for running unit tests.
604587
# add_custom_libcxx(<name> <prefix>

compiler-rt/lib/asan/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Build for the AddressSanitizer runtime support library.
22

33
set(ASAN_SOURCES
4-
asan_aix.cpp
54
asan_allocator.cpp
65
asan_activation.cpp
76
asan_debugging.cpp
@@ -282,8 +281,6 @@ else()
282281
PARENT_TARGET asan)
283282
endif()
284283

285-
# On AIX, we only need the static libraries.
286-
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
287284
foreach(arch ${ASAN_SUPPORTED_ARCH})
288285
if (COMPILER_RT_HAS_VERSION_SCRIPT)
289286
if(WIN32)
@@ -385,18 +382,10 @@ else()
385382
endif()
386383
endif()
387384
endforeach()
388-
endif()
389385
endif()
390386

391387
add_compiler_rt_resource_file(asan_ignorelist asan_ignorelist.txt asan)
392388

393-
# On AIX, we need to put asan.link_with_main_exec.txt and asan_cxx.link_with_main_exec.txt
394-
# to the build and install dir.
395-
if (${CMAKE_SYSTEM_NAME} MATCHES "AIX")
396-
add_compiler_rt_cfg(asan_symbols asan.link_with_main_exec.txt asan)
397-
add_compiler_rt_cfg(asan_cxx_symbols asan_cxx.link_with_main_exec.txt asan)
398-
endif()
399-
400389
add_subdirectory(scripts)
401390

402391
if(COMPILER_RT_INCLUDE_TESTS)

compiler-rt/lib/asan/asan.link_with_main_exec.txt

Lines changed: 0 additions & 115 deletions
This file was deleted.

compiler-rt/lib/asan/asan_aix.cpp

Lines changed: 0 additions & 48 deletions
This file was deleted.

compiler-rt/lib/asan/asan_cxx.link_with_main_exec.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

compiler-rt/lib/asan/asan_posix.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
#include "sanitizer_common/sanitizer_platform.h"
1515
#if SANITIZER_POSIX
1616

17-
// tid_t is also defined in AIX header /usr/include/sys/types.h which is
18-
// included by system pthread.h
19-
# define tid_t tid_t_temp
2017
# include <pthread.h>
21-
# undef tid_t
2218
# include <signal.h>
2319
# include <stdlib.h>
2420
# include <sys/resource.h>
@@ -184,7 +180,7 @@ static void AfterFork(bool fork_child) {
184180

185181
void InstallAtForkHandler() {
186182
# if SANITIZER_SOLARIS || SANITIZER_NETBSD || SANITIZER_APPLE || \
187-
(SANITIZER_LINUX && SANITIZER_SPARC) || SANITIZER_HAIKU || SANITIZER_AIX
183+
(SANITIZER_LINUX && SANITIZER_SPARC) || SANITIZER_HAIKU
188184
// While other Linux targets use clone in internal_fork which doesn't
189185
// trigger pthread_atfork handlers, Linux/sparc64 uses __fork, causing a
190186
// hang.

compiler-rt/lib/asan/scripts/asan_symbolize.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def is_valid_arch(s):
5959
"armv7s",
6060
"armv7k",
6161
"arm64",
62-
"powerpc",
6362
"powerpc64",
6463
"powerpc64le",
6564
"s390x",
@@ -450,14 +449,7 @@ def __init__(self, plugin_proxy=None, dsym_hint_producer=None):
450449
# E.g. in Chrome several binaries may share a single .dSYM.
451450
self.dsym_hint_producer = dsym_hint_producer
452451
self.system = os.uname()[0]
453-
if self.system not in [
454-
"Linux",
455-
"Darwin",
456-
"FreeBSD",
457-
"NetBSD",
458-
"SunOS",
459-
"AIX",
460-
]:
452+
if self.system not in ["Linux", "Darwin", "FreeBSD", "NetBSD", "SunOS"]:
461453
raise Exception("Unknown system")
462454
self.llvm_symbolizers = {}
463455
self.last_llvm_symbolizer = None

compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@ namespace __sanitizer {
2323
typedef CompactSizeClassMap InternalSizeClassMap;
2424

2525
struct AP32 {
26-
// For AIX 64-bit, the mmap begin is at address 0x0a00000000000000ULL.
27-
#if SANITIZER_AIX && SANITIZER_WORDSIZE == 64
28-
static const uptr kSpaceBeg = 0x0a00000000000000ULL;
29-
#else
3026
static const uptr kSpaceBeg = 0;
31-
#endif
3227
static const u64 kSpaceSize = SANITIZER_MMAP_RANGE_SIZE;
3328
static const uptr kMetadataSize = 0;
3429
typedef InternalSizeClassMap SizeClassMap;

compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,6 @@ class SizeClassAllocator32 {
288288
uptr ComputeRegionId(uptr mem) const {
289289
if (SANITIZER_SIGN_EXTENDED_ADDRESSES)
290290
mem &= (kSpaceSize - 1);
291-
mem -= kSpaceBeg;
292291
const uptr res = mem >> kRegionSizeLog;
293292
CHECK_LT(res, kNumPossibleRegions);
294293
return res;

compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,7 @@ void ReserveShadowMemoryRange(uptr beg, uptr end, const char *name,
169169
: !MmapFixedNoReserve(beg, size, name)) {
170170
Report(
171171
"ReserveShadowMemoryRange failed while trying to map 0x%zx bytes. "
172-
"Perhaps you're using ulimit -v "
173-
# if SANITIZER_AIX && SANITIZER_WORDSIZE == 32
174-
"or using large address-space model for 32-bit XCOFF by using ldedit "
175-
"or setting LDR_CNTRL=MAXDATA or compiling the binary with -bmaxdata "
176-
# endif
177-
"\n",
172+
"Perhaps you're using ulimit -v or ulimit -d\n",
178173
size);
179174
Die();
180175
}

0 commit comments

Comments
 (0)