]>
Commit | Line | Data |
---|---|---|
93bf5390 | 1 | # -*- shell-script -*- |
752361c9 | 2 | # Copyright (C) 2012-2018 Free Software Foundation, Inc. |
93bf5390 RH |
3 | |
4 | # This program is free software; you can redistribute it and/or modify | |
5 | # it under the terms of the GNU General Public License as published by | |
6 | # the Free Software Foundation; either version 2 of the License, or | |
7 | # (at your option) any later version. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. | |
13 | # | |
14 | # You should have received a copy of the GNU General Public License | |
15 | # along with this program; if not see <http://www.gnu.org/licenses/>. | |
16 | ||
17 | # This is the target specific configuration file. This is invoked by the | |
18 | # autoconf generated configure script. Putting it in a separate shell file | |
19 | # lets us skip running autoconf when modifying target specific information. | |
20 | ||
21 | # Filter out unsupported systems. | |
8790f572 | 22 | TSAN_TARGET_DEPENDENT_OBJECTS= |
10189819 | 23 | SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS= |
93bf5390 | 24 | case "${target}" in |
64548f3b JJ |
25 | x86_64-*-linux* | i?86-*-linux*) |
26 | if test x$ac_cv_sizeof_void_p = x8; then | |
27 | TSAN_SUPPORTED=yes | |
9065ada9 | 28 | LSAN_SUPPORTED=yes |
8790f572 | 29 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo |
bf4df9e6 L |
30 | fi |
31 | if echo "int x = __x86_64__;" | $CC -c -x c -o /dev/null - > /dev/null 2>&1; then | |
10189819 | 32 | SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=sanitizer_linux_x86_64.lo |
64548f3b JJ |
33 | fi |
34 | ;; | |
957fee09 | 35 | powerpc*-*-linux*) |
c831801d JJ |
36 | if test x$ac_cv_sizeof_void_p = x8; then |
37 | TSAN_SUPPORTED=yes | |
38 | LSAN_SUPPORTED=yes | |
39 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo | |
40 | fi | |
957fee09 | 41 | ;; |
64548f3b | 42 | sparc*-*-linux*) |
93bf5390 | 43 | ;; |
4997a71d | 44 | s390*-*-linux*) |
4997a71d | 45 | ;; |
aaabfd71 RO |
46 | sparc*-*-solaris2.11*) |
47 | ;; | |
8a5800b8 CL |
48 | arm*-*-linux*) |
49 | ;; | |
752361c9 HPN |
50 | mips*64*-*-linux*) |
51 | # This clause is only here to not match the supported mips*-*-linux*. | |
52 | UNSUPPORTED=1 | |
53 | ;; | |
54 | mips*-*-linux*) | |
55 | ;; | |
a3125fc2 | 56 | aarch64*-*-linux*) |
696d846a MO |
57 | if test x$ac_cv_sizeof_void_p = x8; then |
58 | TSAN_SUPPORTED=yes | |
55aea9f5 MO |
59 | LSAN_SUPPORTED=yes |
60 | TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo | |
696d846a | 61 | fi |
a3125fc2 | 62 | ;; |
34dc17ed | 63 | x86_64-*-darwin[1]* | i?86-*-darwin[1]*) |
f246eadc JH |
64 | TSAN_SUPPORTED=no |
65 | ;; | |
aaabfd71 RO |
66 | x86_64-*-solaris2.11* | i?86-*-solaris2.11*) |
67 | ;; | |
93bf5390 RH |
68 | *) |
69 | UNSUPPORTED=1 | |
70 | ;; | |
71 | esac |