* tree-eh.c (lower_resx): Sanitize profile.
[official-gcc.git] / libsanitizer / configure.tgt
blobe648051aab82a31fda7ab599133d0676da298017
1 # -*- shell-script -*-
2 #   Copyright (C) 2012-2017 Free Software Foundation, Inc.
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.
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.
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/>.
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.
21 # Filter out unsupported systems.
22 TSAN_TARGET_DEPENDENT_OBJECTS=
23 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=
24 case "${target}" in
25   x86_64-*-linux* | i?86-*-linux*)
26         if test x$ac_cv_sizeof_void_p = x8; then
27                 TSAN_SUPPORTED=yes
28                 LSAN_SUPPORTED=yes
29                 TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo
30                 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=sanitizer_linux_x86_64.lo
31         fi
32         ;;
33   powerpc*-*-linux*)
34         if test x$ac_cv_sizeof_void_p = x8; then
35                 TSAN_SUPPORTED=yes
36                 LSAN_SUPPORTED=yes
37                 TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo
38         fi
39         ;;
40   sparc*-*-linux*)
41         ;;
42   s390*-*-linux*)
43         if test x$ac_cv_sizeof_void_p = x4; then
44                 UNSUPPORTED=1
45         fi
46         ;;
47   arm*-*-linux*)
48         ;;
49   aarch64*-*-linux*)
50         if test x$ac_cv_sizeof_void_p = x8; then
51                 TSAN_SUPPORTED=yes
52                 LSAN_SUPPORTED=yes
53                 TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo
54         fi
55         ;;
56   x86_64-*-darwin[1]* | i?86-*-darwin[1]*)
57         TSAN_SUPPORTED=no
58         ;;
59   *)
60         UNSUPPORTED=1
61         ;;
62 esac