annotate libsanitizer/configure.tgt @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 84e7813d76e9
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # -*- shell-script -*-
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 # Copyright (C) 2012-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 # This program is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
5 # it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
6 # the Free Software Foundation; either version 2 of the License, or
kono
parents:
diff changeset
7 # (at your option) any later version.
kono
parents:
diff changeset
8 #
kono
parents:
diff changeset
9 # This program is distributed in the hope that it will be useful,
kono
parents:
diff changeset
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
12 # GNU General Public License for more details.
kono
parents:
diff changeset
13 #
kono
parents:
diff changeset
14 # You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
15 # along with this program; if not see <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 # This is the target specific configuration file. This is invoked by the
kono
parents:
diff changeset
18 # autoconf generated configure script. Putting it in a separate shell file
kono
parents:
diff changeset
19 # lets us skip running autoconf when modifying target specific information.
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 # Filter out unsupported systems.
kono
parents:
diff changeset
22 TSAN_TARGET_DEPENDENT_OBJECTS=
kono
parents:
diff changeset
23 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=
kono
parents:
diff changeset
24 case "${target}" in
kono
parents:
diff changeset
25 x86_64-*-linux* | i?86-*-linux*)
kono
parents:
diff changeset
26 if test x$ac_cv_sizeof_void_p = x8; then
kono
parents:
diff changeset
27 TSAN_SUPPORTED=yes
kono
parents:
diff changeset
28 LSAN_SUPPORTED=yes
kono
parents:
diff changeset
29 TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_amd64.lo
kono
parents:
diff changeset
30 fi
kono
parents:
diff changeset
31 if echo "int x = __x86_64__;" | $CC -c -x c -o /dev/null - > /dev/null 2>&1; then
kono
parents:
diff changeset
32 SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS=sanitizer_linux_x86_64.lo
kono
parents:
diff changeset
33 fi
kono
parents:
diff changeset
34 ;;
kono
parents:
diff changeset
35 powerpc*-*-linux*)
kono
parents:
diff changeset
36 if test x$ac_cv_sizeof_void_p = x8; then
kono
parents:
diff changeset
37 TSAN_SUPPORTED=yes
kono
parents:
diff changeset
38 LSAN_SUPPORTED=yes
kono
parents:
diff changeset
39 TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_ppc64.lo
kono
parents:
diff changeset
40 fi
kono
parents:
diff changeset
41 ;;
kono
parents:
diff changeset
42 sparc*-*-linux*)
kono
parents:
diff changeset
43 ;;
kono
parents:
diff changeset
44 s390*-*-linux*)
kono
parents:
diff changeset
45 ;;
kono
parents:
diff changeset
46 arm*-*-linux*)
kono
parents:
diff changeset
47 ;;
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
48 mips*64*-*-linux*)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
49 # This clause is only here to not match the supported mips*-*-linux*.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
50 UNSUPPORTED=1
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
51 ;;
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
52 mips*-*-linux*)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
53 ;;
111
kono
parents:
diff changeset
54 aarch64*-*-linux*)
kono
parents:
diff changeset
55 if test x$ac_cv_sizeof_void_p = x8; then
kono
parents:
diff changeset
56 TSAN_SUPPORTED=yes
kono
parents:
diff changeset
57 LSAN_SUPPORTED=yes
kono
parents:
diff changeset
58 TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo
kono
parents:
diff changeset
59 fi
kono
parents:
diff changeset
60 ;;
kono
parents:
diff changeset
61 x86_64-*-darwin[1]* | i?86-*-darwin[1]*)
kono
parents:
diff changeset
62 TSAN_SUPPORTED=no
kono
parents:
diff changeset
63 ;;
kono
parents:
diff changeset
64 *)
kono
parents:
diff changeset
65 UNSUPPORTED=1
kono
parents:
diff changeset
66 ;;
kono
parents:
diff changeset
67 esac