1
# DP: On linux targets pass --as-needed by default to the linker.
3
Index: b/src/gcc/config/aarch64/aarch64-linux.h
4
===================================================================
5
--- a/src/gcc/config/aarch64/aarch64-linux.h
6
+++ b/src/gcc/config/aarch64/aarch64-linux.h
9
#define LINUX_TARGET_LINK_SPEC "%{h*} \
14
%{symbolic:-Bsymbolic} \
15
Index: b/src/gcc/config/ia64/linux.h
16
===================================================================
17
--- a/src/gcc/config/ia64/linux.h
18
+++ b/src/gcc/config/ia64/linux.h
20
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
23
-#define LINK_SPEC " --hash-style=gnu \
24
+#define LINK_SPEC " --hash-style=gnu --as-needed \
28
Index: b/src/gcc/config/sparc/linux.h
29
===================================================================
30
--- a/src/gcc/config/sparc/linux.h
31
+++ b/src/gcc/config/sparc/linux.h
33
#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
36
-#define LINK_SPEC "-m elf32_sparc --hash-style=gnu %{shared:-shared} \
37
+#define LINK_SPEC "-m elf32_sparc --hash-style=gnu --as-needed %{shared:-shared} \
38
%{!mno-relax:%{!r:-relax}} \
41
Index: b/src/gcc/config/s390/linux.h
42
===================================================================
43
--- a/src/gcc/config/s390/linux.h
44
+++ b/src/gcc/config/s390/linux.h
49
- "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \
50
+ "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu --as-needed \
54
Index: b/src/gcc/config/rs6000/linux64.h
55
===================================================================
56
--- a/src/gcc/config/rs6000/linux64.h
57
+++ b/src/gcc/config/rs6000/linux64.h
62
-#define LINK_OS_LINUX_SPEC32 LINK_OS_LINUX_EMUL32 " --hash-style=gnu %{!shared: %{!static: \
63
+#define LINK_OS_LINUX_SPEC32 LINK_OS_LINUX_EMUL32 " --hash-style=gnu --as-needed %{!shared: %{!static: \
64
%{rdynamic:-export-dynamic} \
65
-dynamic-linker " GNU_USER_DYNAMIC_LINKER32 "}}"
67
-#define LINK_OS_LINUX_SPEC64 LINK_OS_LINUX_EMUL64 " --hash-style=gnu %{!shared: %{!static: \
68
+#define LINK_OS_LINUX_SPEC64 LINK_OS_LINUX_EMUL64 " --hash-style=gnu --as-needed %{!shared: %{!static: \
69
%{rdynamic:-export-dynamic} \
70
-dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "}}"
72
Index: b/src/gcc/config/rs6000/sysv4.h
73
===================================================================
74
--- a/src/gcc/config/rs6000/sysv4.h
75
+++ b/src/gcc/config/rs6000/sysv4.h
77
#define GNU_USER_DYNAMIC_LINKER \
78
CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
80
-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \
81
+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu --as-needed %{!shared: %{!static: \
82
%{rdynamic:-export-dynamic} \
83
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}"
85
Index: b/src/gcc/config/i386/gnu-user64.h
86
===================================================================
87
--- a/src/gcc/config/i386/gnu-user64.h
88
+++ b/src/gcc/config/i386/gnu-user64.h
90
%{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \
91
%{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \
97
Index: b/src/gcc/config/i386/gnu-user.h
98
===================================================================
99
--- a/src/gcc/config/i386/gnu-user.h
100
+++ b/src/gcc/config/i386/gnu-user.h
102
{ "link_emulation", GNU_USER_LINK_EMULATION },\
103
{ "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
105
-#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \
106
+#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) --hash-style=gnu --as-needed %{shared:-shared} \
109
%{rdynamic:-export-dynamic} \
110
Index: b/src/gcc/config/alpha/linux-elf.h
111
===================================================================
112
--- a/src/gcc/config/alpha/linux-elf.h
113
+++ b/src/gcc/config/alpha/linux-elf.h
116
#define ELF_DYNAMIC_LINKER GNU_USER_DYNAMIC_LINKER
118
-#define LINK_SPEC "-m elf64alpha --hash-style=gnu %{G*} %{relax:-relax} \
119
+#define LINK_SPEC "-m elf64alpha --hash-style=gnu --as-needed %{G*} %{relax:-relax} \
120
%{O*:-O3} %{!O*:-O1} \
123
Index: b/src/gcc/config/arm/linux-elf.h
124
===================================================================
125
--- a/src/gcc/config/arm/linux-elf.h
126
+++ b/src/gcc/config/arm/linux-elf.h
128
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
132
%{mbig-endian:-EB} %{mlittle-endian:-EL}" \
133
SUBTARGET_EXTRA_LINK_SPEC
135
Index: b/src/gcc/config/mips/gnu-user.h
136
===================================================================
137
--- a/src/gcc/config/mips/gnu-user.h
138
+++ b/src/gcc/config/mips/gnu-user.h
140
#undef GNU_USER_TARGET_LINK_SPEC
141
#define GNU_USER_TARGET_LINK_SPEC \
147
Index: b/src/gcc/config/mips/gnu-user64.h
148
===================================================================
149
--- a/src/gcc/config/mips/gnu-user64.h
150
+++ b/src/gcc/config/mips/gnu-user64.h
152
#define GNU_USER_TARGET_LINK_SPEC "\
153
%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \
159
Index: b/src/libjava/Makefile.am
160
===================================================================
161
--- a/src/libjava/Makefile.am
162
+++ b/src/libjava/Makefile.am
164
rm .libs/libgcj_bc.so; \
165
mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
166
$(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
167
- -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
168
+ -o .libs/libgcj_bc.so.1.0.0 -Wl,--no-as-needed -lgcj || exit; \
169
rm .libs/libgcj_bc.so.1; \
170
$(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
172
Index: b/src/libjava/Makefile.in
173
===================================================================
174
--- a/src/libjava/Makefile.in
175
+++ b/src/libjava/Makefile.in
176
@@ -10573,7 +10573,7 @@
177
rm .libs/libgcj_bc.so; \
178
mv .libs/libgcj_bc.so.1.0.0 .libs/libgcj_bc.so; \
179
$(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
180
- -o .libs/libgcj_bc.so.1.0.0 -lgcj || exit; \
181
+ -o .libs/libgcj_bc.so.1.0.0 -Wl,--no-as-needed -lgcj || exit; \
182
rm .libs/libgcj_bc.so.1; \
183
$(LN_S) libgcj_bc.so.1.0.0 .libs/libgcj_bc.so.1
185
Index: b/src/libstdc++-v3/testsuite/30_threads/try_lock/2.cc
186
===================================================================
187
--- a/src/libstdc++-v3/testsuite/30_threads/try_lock/2.cc
188
+++ b/src/libstdc++-v3/testsuite/30_threads/try_lock/2.cc
190
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
191
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
192
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
193
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
194
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
195
// { dg-require-cstdint "" }
196
Index: b/src/libstdc++-v3/testsuite/30_threads/try_lock/4.cc
197
===================================================================
198
--- a/src/libstdc++-v3/testsuite/30_threads/try_lock/4.cc
199
+++ b/src/libstdc++-v3/testsuite/30_threads/try_lock/4.cc
201
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
202
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
203
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
204
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
205
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
206
// { dg-require-cstdint "" }
207
Index: b/src/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc
208
===================================================================
209
--- a/src/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc
210
+++ b/src/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc
212
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* *-*-solaris* *-*-cygwin *-*-darwin1[1-9]* powerpc-ibm-aix* } }
213
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* powerpc-ibm-aix* } }
214
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-gnu* powerpc-ibm-aix* } }
215
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
216
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
217
// { dg-require-cstdint "" }
218
Index: b/src/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc
219
===================================================================
220
--- a/src/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc
221
+++ b/src/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc
223
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
224
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
225
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
226
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
227
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
228
// { dg-require-cstdint "" }
229
Index: b/src/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc
230
===================================================================
231
--- a/src/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc
232
+++ b/src/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc
234
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
235
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
236
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
237
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
238
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
239
// { dg-require-cstdint "" }
240
Index: b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc
241
===================================================================
242
--- a/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc
243
+++ b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc
245
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
246
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
247
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
248
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
249
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
250
// { dg-require-cstdint "" }
251
Index: b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc
252
===================================================================
253
--- a/src/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc
254
+++ b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc
256
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
257
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
258
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
259
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
260
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
261
// { dg-require-cstdint "" }
262
Index: b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc
263
===================================================================
264
--- a/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc
265
+++ b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc
267
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
268
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
269
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
270
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
271
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
272
// { dg-require-cstdint "" }
273
Index: b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc
274
===================================================================
275
--- a/src/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc
276
+++ b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc
278
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
279
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
280
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
281
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
282
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
283
// { dg-require-cstdint "" }
284
Index: b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc
285
===================================================================
286
--- a/src/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc
287
+++ b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc
289
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
290
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
291
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
292
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
293
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
294
// { dg-require-cstdint "" }
295
Index: b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc
296
===================================================================
297
--- a/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc
298
+++ b/src/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc
300
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
301
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
302
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
303
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
304
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
305
// { dg-require-cstdint "" }
306
Index: b/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc
307
===================================================================
308
--- a/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc
309
+++ b/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc
311
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
312
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
313
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
314
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
315
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
316
// { dg-require-cstdint "" }
317
Index: b/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc
318
===================================================================
319
--- a/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc
320
+++ b/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc
322
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
323
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
324
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
325
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
326
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
327
// { dg-require-cstdint "" }
328
Index: b/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc
329
===================================================================
330
--- a/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc
331
+++ b/src/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc
333
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
334
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
335
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
336
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
337
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
338
// { dg-require-cstdint "" }
339
Index: b/src/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc
340
===================================================================
341
--- a/src/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc
342
+++ b/src/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc
344
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
345
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
346
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
347
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
348
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
349
// { dg-require-cstdint "" }
350
Index: b/src/libstdc++-v3/testsuite/30_threads/async/any.cc
351
===================================================================
352
--- a/src/libstdc++-v3/testsuite/30_threads/async/any.cc
353
+++ b/src/libstdc++-v3/testsuite/30_threads/async/any.cc
355
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
356
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
357
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
358
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
359
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
360
// { dg-require-cstdint "" }
361
Index: b/src/libstdc++-v3/testsuite/30_threads/async/42819.cc
362
===================================================================
363
--- a/src/libstdc++-v3/testsuite/30_threads/async/42819.cc
364
+++ b/src/libstdc++-v3/testsuite/30_threads/async/42819.cc
366
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
367
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
368
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
369
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
370
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
371
// { dg-require-cstdint "" }
372
Index: b/src/libstdc++-v3/testsuite/30_threads/async/sync.cc
373
===================================================================
374
--- a/src/libstdc++-v3/testsuite/30_threads/async/sync.cc
375
+++ b/src/libstdc++-v3/testsuite/30_threads/async/sync.cc
377
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
378
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
379
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
380
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
381
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
382
// { dg-require-cstdint "" }
383
Index: b/src/libstdc++-v3/testsuite/30_threads/async/async.cc
384
===================================================================
385
--- a/src/libstdc++-v3/testsuite/30_threads/async/async.cc
386
+++ b/src/libstdc++-v3/testsuite/30_threads/async/async.cc
388
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
389
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
390
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
391
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
392
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
393
// { dg-require-cstdint "" }
394
Index: b/src/libstdc++-v3/testsuite/30_threads/async/49668.cc
395
===================================================================
396
--- a/src/libstdc++-v3/testsuite/30_threads/async/49668.cc
397
+++ b/src/libstdc++-v3/testsuite/30_threads/async/49668.cc
399
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
400
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
401
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
402
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
403
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
404
// { dg-require-cstdint "" }
405
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc
406
===================================================================
407
--- a/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc
408
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc
410
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
411
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
412
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
413
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
414
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
415
// { dg-require-cstdint "" }
416
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc
417
===================================================================
418
--- a/src/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc
419
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc
421
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
422
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
423
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
424
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
425
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
426
// { dg-require-cstdint "" }
427
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc
428
===================================================================
429
--- a/src/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc
430
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc
432
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
433
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
434
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
435
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
436
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
437
// { dg-require-cstdint "" }
438
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc
439
===================================================================
440
--- a/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc
441
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc
443
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
444
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
445
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
446
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
447
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
448
// { dg-require-cstdint "" }
449
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc
450
===================================================================
451
--- a/src/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc
452
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc
454
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
455
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
456
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
457
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
458
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
459
// { dg-require-cstdint "" }
460
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc
461
===================================================================
462
--- a/src/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc
463
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc
465
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
466
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
467
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
468
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
469
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
470
// { dg-require-cstdint "" }
471
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc
472
===================================================================
473
--- a/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc
474
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc
476
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
477
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
478
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
479
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
480
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
481
// { dg-require-cstdint "" }
482
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc
483
===================================================================
484
--- a/src/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc
485
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc
487
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
488
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
489
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
490
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
491
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
492
// { dg-require-cstdint "" }
493
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc
494
===================================================================
495
--- a/src/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc
496
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc
498
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
499
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
500
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
501
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
502
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
503
// { dg-require-cstdint "" }
504
Index: b/src/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc
505
===================================================================
506
--- a/src/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc
507
+++ b/src/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc
509
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
510
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
511
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
512
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
513
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
514
// { dg-require-cstdint "" }
515
Index: b/src/libstdc++-v3/testsuite/30_threads/call_once/39909.cc
516
===================================================================
517
--- a/src/libstdc++-v3/testsuite/30_threads/call_once/39909.cc
518
+++ b/src/libstdc++-v3/testsuite/30_threads/call_once/39909.cc
520
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
521
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
522
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
523
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
524
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
525
// { dg-require-cstdint "" }
526
Index: b/src/libstdc++-v3/testsuite/30_threads/call_once/49668.cc
527
===================================================================
528
--- a/src/libstdc++-v3/testsuite/30_threads/call_once/49668.cc
529
+++ b/src/libstdc++-v3/testsuite/30_threads/call_once/49668.cc
531
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
532
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
533
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
534
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
535
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
536
// { dg-require-cstdint "" }
537
Index: b/src/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc
538
===================================================================
539
--- a/src/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc
540
+++ b/src/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc
542
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
543
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
544
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
545
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
546
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
547
// { dg-require-cstdint "" }
548
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
549
===================================================================
550
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
551
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
553
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
554
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
555
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
556
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
557
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
558
// { dg-require-cstdint "" }
559
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc
560
===================================================================
561
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc
562
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc
564
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
565
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
566
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
567
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
568
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
569
// { dg-require-cstdint "" }
570
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc
571
===================================================================
572
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc
573
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc
575
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
576
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
577
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
578
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
579
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
580
// { dg-require-cstdint "" }
581
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc
582
===================================================================
583
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc
584
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc
586
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
587
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
588
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
589
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
590
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
591
// { dg-require-cstdint "" }
592
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc
593
===================================================================
594
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc
595
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc
597
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
598
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
599
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
600
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
601
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
602
// { dg-require-cstdint "" }
603
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc
604
===================================================================
605
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc
606
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc
608
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
609
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
610
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
611
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
612
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
613
// { dg-require-cstdint "" }
614
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc
615
===================================================================
616
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc
617
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc
619
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
620
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
621
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
622
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
623
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
624
// { dg-require-cstdint "" }
625
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc
626
===================================================================
627
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc
628
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc
630
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
631
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
632
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
633
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
634
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
635
// { dg-require-cstdint "" }
636
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc
637
===================================================================
638
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc
639
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc
641
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
642
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
643
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
644
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
645
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
646
// { dg-require-cstdint "" }
647
Index: b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc
648
===================================================================
649
--- a/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc
650
+++ b/src/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc
652
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
653
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
654
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
655
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
656
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
657
// { dg-require-cstdint "" }
658
Index: b/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc
659
===================================================================
660
--- a/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc
661
+++ b/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc
663
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
664
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
665
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
666
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
667
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
668
// { dg-require-cstdint "" }
669
Index: b/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc
670
===================================================================
671
--- a/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc
672
+++ b/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc
674
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
675
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
676
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
677
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
678
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
679
// { dg-require-cstdint "" }
680
Index: b/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc
681
===================================================================
682
--- a/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc
683
+++ b/src/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc
685
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
686
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
687
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
688
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
689
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
690
// { dg-require-cstdint "" }
691
Index: b/src/libstdc++-v3/testsuite/30_threads/lock/2.cc
692
===================================================================
693
--- a/src/libstdc++-v3/testsuite/30_threads/lock/2.cc
694
+++ b/src/libstdc++-v3/testsuite/30_threads/lock/2.cc
696
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
697
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
698
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
699
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
700
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
701
// { dg-require-cstdint "" }
702
Index: b/src/libstdc++-v3/testsuite/30_threads/lock/4.cc
703
===================================================================
704
--- a/src/libstdc++-v3/testsuite/30_threads/lock/4.cc
705
+++ b/src/libstdc++-v3/testsuite/30_threads/lock/4.cc
707
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
708
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
709
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
710
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
711
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
712
// { dg-require-cstdint "" }
713
Index: b/src/libstdc++-v3/testsuite/30_threads/this_thread/1.cc
714
===================================================================
715
--- a/src/libstdc++-v3/testsuite/30_threads/this_thread/1.cc
716
+++ b/src/libstdc++-v3/testsuite/30_threads/this_thread/1.cc
718
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
719
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
720
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
721
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
722
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
723
// { dg-require-cstdint "" }
724
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/members/1.cc
725
===================================================================
726
--- a/src/libstdc++-v3/testsuite/30_threads/thread/members/1.cc
727
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/members/1.cc
729
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
730
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
731
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
732
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
733
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
734
// { dg-require-cstdint "" }
735
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/members/2.cc
736
===================================================================
737
--- a/src/libstdc++-v3/testsuite/30_threads/thread/members/2.cc
738
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/members/2.cc
740
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
741
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
742
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
743
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
744
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
745
// { dg-require-cstdint "" }
746
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/members/3.cc
747
===================================================================
748
--- a/src/libstdc++-v3/testsuite/30_threads/thread/members/3.cc
749
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/members/3.cc
751
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
752
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
753
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
754
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
755
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
756
// { dg-require-cstdint "" }
757
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc
758
===================================================================
759
--- a/src/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc
760
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc
762
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
763
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
764
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
765
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
766
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
767
// { dg-require-cstdint "" }
768
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc
769
===================================================================
770
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc
771
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc
773
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
774
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
775
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
776
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
777
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
778
// { dg-require-cstdint "" }
779
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc
780
===================================================================
781
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc
782
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc
784
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
785
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
786
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
787
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
788
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
789
// { dg-require-cstdint "" }
790
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc
791
===================================================================
792
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc
793
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc
795
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
796
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
797
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
798
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
799
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
800
// { dg-require-cstdint "" }
801
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc
802
===================================================================
803
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc
804
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc
806
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
807
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
808
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
809
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
810
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
811
// { dg-require-cstdint "" }
812
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc
813
===================================================================
814
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc
815
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc
817
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
818
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
819
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
820
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
821
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
822
// { dg-require-cstdint "" }
823
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc
824
===================================================================
825
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc
826
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc
828
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
829
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
830
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
831
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
832
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
833
// { dg-require-cstdint "" }
834
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc
835
===================================================================
836
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc
837
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc
839
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
840
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
841
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
842
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
843
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
844
// { dg-require-cstdint "" }
845
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc
846
===================================================================
847
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc
848
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc
850
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
851
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
852
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
853
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
854
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
855
// { dg-require-cstdint "" }
856
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc
857
===================================================================
858
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc
859
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc
861
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
862
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
863
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
864
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
865
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
866
// { dg-require-cstdint "" }
867
Index: b/src/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc
868
===================================================================
869
--- a/src/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc
870
+++ b/src/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc
872
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
873
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
874
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
875
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
876
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
877
// { dg-require-cstdint "" }
878
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/valid.cc
879
===================================================================
880
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/valid.cc
881
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/valid.cc
883
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
884
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
885
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
886
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
887
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
888
// { dg-require-cstdint "" }
889
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/get2.cc
890
===================================================================
891
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/get2.cc
892
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/get2.cc
894
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
895
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
896
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
897
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
898
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
899
// { dg-require-cstdint "" }
900
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/share.cc
901
===================================================================
902
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/share.cc
903
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/share.cc
905
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
906
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
907
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
908
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
909
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
910
// { dg-require-cstdint "" }
911
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/wait.cc
912
===================================================================
913
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/wait.cc
914
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/wait.cc
916
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
917
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
918
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
919
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
920
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
921
// { dg-require-cstdint "" }
922
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc
923
===================================================================
924
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc
925
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc
927
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
928
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
929
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
930
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
931
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
932
// { dg-require-cstdint "" }
933
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/get.cc
934
===================================================================
935
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/get.cc
936
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/get.cc
938
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
939
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
940
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
941
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
942
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
943
// { dg-require-cstdint "" }
944
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/45133.cc
945
===================================================================
946
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/45133.cc
947
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/45133.cc
949
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
950
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
951
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
952
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
953
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
954
// { dg-require-cstdint "" }
955
Index: b/src/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc
956
===================================================================
957
--- a/src/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc
958
+++ b/src/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc
960
// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* powerpc-ibm-aix* } }
961
-// { dg-options " -std=gnu++0x -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
962
+// { dg-options " -std=gnu++0x -pthread -Wl,--no-as-needed" { target *-*-freebsd* *-*-netbsd* *-*-linux* powerpc-ibm-aix* } }
963
// { dg-options " -std=gnu++0x -pthreads" { target *-*-solaris* } }
964
// { dg-options " -std=gnu++0x " { target *-*-cygwin *-*-darwin* } }
965
// { dg-require-cstdint "" }