]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/configure.tgt
* configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
[thirdparty/gcc.git] / libsanitizer / configure.tgt
CommitLineData
93bf5390 1# -*- shell-script -*-
c831801d 2# Copyright (C) 2012-2017 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 22TSAN_TARGET_DEPENDENT_OBJECTS=
10189819 23SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=
93bf5390 24case "${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
10189819 30 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=sanitizer_linux_x86_64.lo
64548f3b
JJ
31 fi
32 ;;
957fee09 33 powerpc*-*-linux*)
c831801d
JJ
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
957fee09 39 ;;
64548f3b 40 sparc*-*-linux*)
93bf5390 41 ;;
8a5800b8
CL
42 arm*-*-linux*)
43 ;;
a3125fc2 44 aarch64*-*-linux*)
696d846a
MO
45 if test x$ac_cv_sizeof_void_p = x8; then
46 TSAN_SUPPORTED=yes
55aea9f5
MO
47 LSAN_SUPPORTED=yes
48 TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo
696d846a 49 fi
a3125fc2 50 ;;
34dc17ed 51 x86_64-*-darwin[1]* | i?86-*-darwin[1]*)
f246eadc
JH
52 TSAN_SUPPORTED=no
53 ;;
93bf5390
RH
54 *)
55 UNSUPPORTED=1
56 ;;
57esac