Mercurial > hg > CbC > CbC_gcc
annotate libgomp/configure.tgt @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
0 | 1 # This is the target specific configuration file. This is invoked by the |
2 # autoconf generated configure script. Putting it in a separate shell file | |
3 # lets us skip running autoconf when modifying target specific information. | |
4 | |
5 # This file switches on the shell variable ${target}, and sets the | |
6 # following shell variables: | |
7 # config_path An ordered list of directories to search for | |
8 # sources and headers. This is relative to the | |
9 # config subdirectory of the source tree. | |
10 # XCFLAGS Add extra compile flags to use. | |
11 # XLDFLAGS Add extra link flags to use. | |
12 | |
13 # Optimize TLS usage by avoiding the overhead of dynamic allocation. | |
14 if test $gcc_cv_have_tls = yes ; then | |
15 case "${target}" in | |
16 | |
111 | 17 *-*-k*bsd*-gnu*) |
18 ;; | |
19 | |
145 | 20 *-*-musl*) |
21 ;; | |
22 | |
111 | 23 *-*-linux* | *-*-gnu*) |
145 | 24 XCFLAGS="${XCFLAGS} -ftls-model=initial-exec -DUSING_INITIAL_EXEC_TLS" |
0 | 25 ;; |
111 | 26 |
27 *-*-rtems*) | |
28 XCFLAGS="${XCFLAGS} -ftls-model=local-exec" | |
29 ;; | |
0 | 30 esac |
31 fi | |
32 | |
33 # Since we require POSIX threads, assume a POSIX system by default. | |
34 config_path="posix" | |
35 | |
36 # Check for futex enabled all at once. | |
111 | 37 if test x$enable_linux_futex = xyes; then |
0 | 38 case "${target}" in |
39 | |
111 | 40 aarch64*-*-linux*) |
41 config_path="linux posix" | |
42 ;; | |
43 | |
0 | 44 alpha*-*-linux*) |
45 config_path="linux/alpha linux posix" | |
46 ;; | |
47 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
48 arm*-*-linux*) |
111 | 49 config_path="linux posix" |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
50 ;; |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
51 |
0 | 52 ia64*-*-linux*) |
53 config_path="linux/ia64 linux posix" | |
54 ;; | |
55 | |
56 mips*-*-linux*) | |
57 config_path="linux/mips linux posix" | |
58 ;; | |
59 | |
60 powerpc*-*-linux*) | |
61 config_path="linux/powerpc linux posix" | |
62 ;; | |
63 | |
64 s390*-*-linux*) | |
65 config_path="linux/s390 linux posix" | |
66 ;; | |
67 | |
111 | 68 tile*-*-linux*) |
69 config_path="linux/tile linux posix" | |
70 ;; | |
71 | |
0 | 72 # Note that bare i386 is not included here. We need cmpxchg. |
73 i[456]86-*-linux*) | |
74 config_path="linux/x86 linux posix" | |
75 case " ${CC} ${CFLAGS} " in | |
111 | 76 *" -m64 "*|*" -mx32 "*) |
0 | 77 ;; |
78 *) | |
79 if test -z "$with_arch"; then | |
80 XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}" | |
81 fi | |
82 esac | |
83 ;; | |
84 | |
85 # Similar jiggery-pokery for x86_64 multilibs, except here we | |
86 # can't rely on the --with-arch configure option, since that | |
87 # applies to the 64-bit side. | |
88 x86_64-*-linux*) | |
89 config_path="linux/x86 linux posix" | |
90 case " ${CC} ${CFLAGS} " in | |
91 *" -m32 "*) | |
111 | 92 XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic" |
0 | 93 ;; |
94 esac | |
95 ;; | |
96 | |
97 # Note that sparcv7 and sparcv8 is not included here. We need cas. | |
98 sparcv9-*-linux* | sparc64-*-linux*) | |
99 echo "int i;" > conftestx.c | |
100 if ${CC} ${CFLAGS} -c -o conftestx.o conftestx.c > /dev/null 2>&1; then | |
101 config_path="linux/sparc linux posix" | |
102 case "`/usr/bin/file conftestx.o`" in | |
103 *32-bit*) | |
104 case " ${CC} ${CFLAGS}" in | |
105 *" -mcpu=ultrasparc"*) | |
106 ;; | |
107 *) | |
108 XCFLAGS="${XCFLAGS} -mcpu=v9" | |
109 ;; | |
110 esac | |
111 ;; | |
112 esac | |
113 fi | |
114 rm -f conftestx.c conftestx.o | |
115 ;; | |
116 esac | |
117 fi | |
118 | |
119 # Other system configury | |
120 case "${target}" in | |
121 | |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
122 *-*-hpux*) |
111 | 123 config_path="hpux posix" |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
124 case "${target}" in |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
125 *-*-hpux11*) |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
126 # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
127 XLDFLAGS="${XLDFLAGS} -lrt" |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
128 ;; |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
129 esac |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
130 case "${target}" in |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
131 hppa[12]*-*-hpux*) |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
132 # PA 32 HP-UX needs -frandom-seed for bootstrap compare. |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
133 XCFLAGS="${XCFLAGS} -frandom-seed=fixed-seed" |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
134 ;; |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
135 esac |
0 | 136 ;; |
137 | |
138 *-*-mingw32*) | |
139 config_path="mingw32 posix" | |
140 ;; | |
141 | |
142 *-*-darwin*) | |
111 | 143 config_path="bsd darwin posix" |
0 | 144 ;; |
145 | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
146 *-*-freebsd*) |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
147 # Need to link with -lpthread so libgomp.so is self-contained. |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
148 XLDFLAGS="${XLDFLAGS} -lpthread" |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
149 ;; |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
150 |
111 | 151 *-*-aix*) |
152 config_path="posix" | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
153 # Need to link with -lpthread so libgomp.so is self-contained. |
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
154 XLDFLAGS="${XLDFLAGS} -lpthread" |
111 | 155 # AIX needs -frandom-seed for bootstrap compare. |
156 XCFLAGS="${XCFLAGS} -frandom-seed=\$@" | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
63
diff
changeset
|
157 ;; |
111 | 158 |
159 nvptx*-*-*) | |
145 | 160 config_path="nvptx accel" |
111 | 161 ;; |
162 | |
163 *-*-rtems*) | |
164 # Use self-contained synchronization objects if provided by Newlib | |
165 if test "x$ac_cv_type_struct__Mutex_Control" = xyes ; then | |
166 config_path="rtems posix" | |
167 fi | |
168 ;; | |
169 | |
145 | 170 amdgcn*-*-*) |
171 config_path="gcn accel" | |
172 ;; | |
173 | |
0 | 174 *) |
175 ;; | |
176 | |
177 esac |