* include/bits/allocator.h (operator==, operator!=): Add exception
[official-gcc.git] / libsanitizer / libbacktrace / backtrace-rename.h
blob159512f0b5515abfe036853038fbfdcfd34e4f4a
1 /* Ensure we don't pollute application namespace. */
2 #define backtrace_alloc __asan_backtrace_alloc
3 #define backtrace_close __asan_backtrace_close
4 #define backtrace_create_state __asan_backtrace_create_state
5 #define backtrace_dwarf_add __asan_backtrace_dwarf_add
6 #define backtrace_free __asan_backtrace_free
7 #define backtrace_get_view __asan_backtrace_get_view
8 #define backtrace_initialize __asan_backtrace_initialize
9 #define backtrace_open __asan_backtrace_open
10 #define backtrace_pcinfo __asan_backtrace_pcinfo
11 #define backtrace_qsort __asan_backtrace_qsort
12 #define backtrace_release_view __asan_backtrace_release_view
13 #define backtrace_syminfo __asan_backtrace_syminfo
14 #define backtrace_vector_finish __asan_backtrace_vector_finish
15 #define backtrace_vector_grow __asan_backtrace_vector_grow
16 #define backtrace_vector_release __asan_backtrace_vector_release
18 #define cplus_demangle_builtin_types __asan_cplus_demangle_builtin_types
19 #define cplus_demangle_fill_ctor __asan_cplus_demangle_fill_ctor
20 #define cplus_demangle_fill_dtor __asan_cplus_demangle_fill_dtor
21 #define cplus_demangle_fill_extended_operator __asan_cplus_demangle_fill_extended_operator
22 #define cplus_demangle_fill_name __asan_cplus_demangle_fill_name
23 #define cplus_demangle_init_info __asan_cplus_demangle_init_info
24 #define cplus_demangle_mangled_name __asan_cplus_demangle_mangled_name
25 #define cplus_demangle_operators __asan_cplus_demangle_operators
26 #define cplus_demangle_print __asan_cplus_demangle_print
27 #define cplus_demangle_print_callback __asan_cplus_demangle_print_callback
28 #define cplus_demangle_type __asan_cplus_demangle_type
29 #define cplus_demangle_v3 __asan_cplus_demangle_v3
30 #define cplus_demangle_v3_callback __asan_cplus_demangle_v3_callback
31 #define is_gnu_v3_mangled_ctor __asan_is_gnu_v3_mangled_ctor
32 #define is_gnu_v3_mangled_dtor __asan_is_gnu_v3_mangled_dtor
33 #define java_demangle_v3 __asan_java_demangle_v3
34 #define java_demangle_v3_callback __asan_java_demangle_v3_callback
36 #ifndef __cplusplus
38 #include <string.h>
40 extern void *__asan_internal_memcpy (void *, const void *, size_t);
41 extern void *__asan_internal_memset (void *, int, size_t);
42 extern int __asan_internal_memcmp (const void *, const void *, size_t);
43 extern int __asan_internal_strcmp (const char *, const char *);
44 extern int __asan_internal_strncmp (const char *, const char *, size_t);
45 extern size_t __asan_internal_strlen (const char *);
46 extern size_t __asan_internal_strnlen (const char *, size_t);
48 #undef memcpy
49 #undef memset
50 #undef memcmp
51 #undef strcmp
52 #undef strncmp
53 #undef strlen
54 #undef strnlen
56 #define memcpy(x,y,z) __asan_internal_memcpy (x, y, z)
57 #define memset(x,y,z) __asan_internal_memset (x, y, z)
58 #define memcmp(x,y,z) __asan_internal_memcmp (x, y, z)
59 #define strcmp(x,y) __asan_internal_strcmp (x, y)
60 #define strncmp(x,y,z) __asan_internal_strncmp (x, y, z)
61 #define strlen(x) __asan_internal_strlen (x)
62 #ifdef HAVE_DECL_STRNLEN
63 #define strnlen(x,y) __asan_internal_strnlen (x, y)
64 #endif
66 #endif