Mercurial > hg > CbC > CbC_gcc
annotate libgomp/configure.tgt @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
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 | |
20 *-*-linux* | *-*-gnu*) | |
0 | 21 XCFLAGS="${XCFLAGS} -ftls-model=initial-exec" |
22 ;; | |
111 | 23 |
24 *-*-rtems*) | |
25 XCFLAGS="${XCFLAGS} -ftls-model=local-exec" | |
26 ;; | |
0 | 27 esac |
28 fi | |
29 | |
30 # Since we require POSIX threads, assume a POSIX system by default. | |
31 config_path="posix" | |
32 | |
33 # Check for futex enabled all at once. | |
111 | 34 if test x$enable_linux_futex = xyes; then |
0 | 35 case "${target}" in |
36 | |
111 | 37 aarch64*-*-linux*) |
38 config_path="linux posix" | |
39 ;; | |
40 | |
0 | 41 alpha*-*-linux*) |
42 config_path="linux/alpha linux posix" | |
43 ;; | |
44 | |
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
|
45 arm*-*-linux*) |
111 | 46 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
|
47 ;; |
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 |
0 | 49 ia64*-*-linux*) |
50 config_path="linux/ia64 linux posix" | |
51 ;; | |
52 | |
53 mips*-*-linux*) | |
54 config_path="linux/mips linux posix" | |
55 ;; | |
56 | |
57 powerpc*-*-linux*) | |
58 config_path="linux/powerpc linux posix" | |
59 ;; | |
60 | |
61 s390*-*-linux*) | |
62 config_path="linux/s390 linux posix" | |
63 ;; | |
64 | |
111 | 65 tile*-*-linux*) |
66 config_path="linux/tile linux posix" | |
67 ;; | |
68 | |
0 | 69 # Note that bare i386 is not included here. We need cmpxchg. |
70 i[456]86-*-linux*) | |
71 config_path="linux/x86 linux posix" | |
72 case " ${CC} ${CFLAGS} " in | |
111 | 73 *" -m64 "*|*" -mx32 "*) |
0 | 74 ;; |
75 *) | |
76 if test -z "$with_arch"; then | |
77 XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}" | |
78 fi | |
79 esac | |
80 ;; | |
81 | |
82 # Similar jiggery-pokery for x86_64 multilibs, except here we | |
83 # can't rely on the --with-arch configure option, since that | |
84 # applies to the 64-bit side. | |
85 x86_64-*-linux*) | |
86 config_path="linux/x86 linux posix" | |
87 case " ${CC} ${CFLAGS} " in | |
88 *" -m32 "*) | |
111 | 89 XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic" |
0 | 90 ;; |
91 esac | |
92 ;; | |
93 | |
94 # Note that sparcv7 and sparcv8 is not included here. We need cas. | |
95 sparcv9-*-linux* | sparc64-*-linux*) | |
96 echo "int i;" > conftestx.c | |
97 if ${CC} ${CFLAGS} -c -o conftestx.o conftestx.c > /dev/null 2>&1; then | |
98 config_path="linux/sparc linux posix" | |
99 case "`/usr/bin/file conftestx.o`" in | |
100 *32-bit*) | |
101 case " ${CC} ${CFLAGS}" in | |
102 *" -mcpu=ultrasparc"*) | |
103 ;; | |
104 *) | |
105 XCFLAGS="${XCFLAGS} -mcpu=v9" | |
106 ;; | |
107 esac | |
108 ;; | |
109 esac | |
110 fi | |
111 rm -f conftestx.c conftestx.o | |
112 ;; | |
113 esac | |
114 fi | |
115 | |
116 # Other system configury | |
117 case "${target}" in | |
118 | |
63
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
119 *-*-hpux*) |
111 | 120 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
|
121 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
|
122 *-*-hpux11*) |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
123 # 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
|
124 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
|
125 ;; |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
126 esac |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
127 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
|
128 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
|
129 # 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
|
130 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
|
131 ;; |
b7f97abdc517
update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
132 esac |
0 | 133 ;; |
134 | |
135 *-*-mingw32*) | |
136 config_path="mingw32 posix" | |
137 ;; | |
138 | |
139 *-*-darwin*) | |
111 | 140 config_path="bsd darwin posix" |
0 | 141 ;; |
142 | |
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
|
143 *-*-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
|
144 # 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
|
145 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
|
146 ;; |
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 |
111 | 148 *-*-aix*) |
149 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
|
150 # 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
|
151 XLDFLAGS="${XLDFLAGS} -lpthread" |
111 | 152 # AIX needs -frandom-seed for bootstrap compare. |
153 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
|
154 ;; |
111 | 155 |
156 nvptx*-*-*) | |
157 config_path="nvptx" | |
158 ;; | |
159 | |
160 *-*-rtems*) | |
161 # Use self-contained synchronization objects if provided by Newlib | |
162 if test "x$ac_cv_type_struct__Mutex_Control" = xyes ; then | |
163 config_path="rtems posix" | |
164 fi | |
165 ;; | |
166 | |
0 | 167 *) |
168 ;; | |
169 | |
170 esac |