~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/e0/e0a00a739c528a7844c98a08a35925e8201ebedc.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: On linux targets pass --as-needed by default to the linker.
 
2
 
 
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
 
7
@@ -27,6 +27,7 @@
 
8
 
 
9
 #define LINUX_TARGET_LINK_SPEC  "%{h*}         \
 
10
    --hash-style=gnu                            \
 
11
+   --as-needed                                 \
 
12
    %{static:-Bstatic}                          \
 
13
    %{shared:-shared}                           \
 
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
 
19
@@ -58,7 +58,7 @@
 
20
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
 
21
 
 
22
 #undef LINK_SPEC
 
23
-#define LINK_SPEC " --hash-style=gnu \
 
24
+#define LINK_SPEC " --hash-style=gnu --as-needed \
 
25
   %{shared:-shared} \
 
26
   %{!shared: \
 
27
     %{!static: \
 
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
 
32
@@ -86,7 +86,7 @@
 
33
 #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
34
 
 
35
 #undef  LINK_SPEC
 
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}} \
 
39
   %{!shared: \
 
40
     %{!static: \
 
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
 
45
@@ -65,7 +65,7 @@
 
46
 
 
47
 #undef  LINK_SPEC
 
48
 #define LINK_SPEC \
 
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 \
 
51
    %{shared:-shared} \
 
52
    %{!shared: \
 
53
       %{static:-static} \
 
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
 
58
@@ -416,11 +416,11 @@
 
59
                                           " -m elf64ppc")
 
60
 #endif
 
61
 
 
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 "}}"
 
66
 
 
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 "}}"
 
71
 
 
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
 
76
@@ -773,7 +773,7 @@
 
77
 #define GNU_USER_DYNAMIC_LINKER \
 
78
   CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER)
 
79
 
 
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 "}}"
 
84
 
 
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
 
89
@@ -57,6 +57,7 @@
 
90
                    %{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \
 
91
                    %{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \
 
92
   --hash-style=gnu \
 
93
+  --as-needed \
 
94
   %{shared:-shared} \
 
95
   %{!shared: \
 
96
     %{!static: \
 
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
 
101
@@ -74,7 +74,7 @@
 
102
   { "link_emulation", GNU_USER_LINK_EMULATION },\
 
103
   { "dynamic_linker", GNU_USER_DYNAMIC_LINKER }
 
104
 
 
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} \
 
107
   %{!shared: \
 
108
     %{!static: \
 
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
 
114
@@ -37,7 +37,7 @@
 
115
 
 
116
 #define ELF_DYNAMIC_LINKER     GNU_USER_DYNAMIC_LINKER
 
117
 
 
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}                                         \
 
121
   %{shared:-shared}                                            \
 
122
   %{!shared:                                                   \
 
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
 
127
@@ -68,6 +68,7 @@
 
128
      -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
 
129
    -X \
 
130
    --hash-style=gnu \
 
131
+   --as-needed \
 
132
    %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
 
133
    SUBTARGET_EXTRA_LINK_SPEC
 
134
 
 
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
 
139
@@ -56,6 +56,7 @@
 
140
 #undef GNU_USER_TARGET_LINK_SPEC
 
141
 #define GNU_USER_TARGET_LINK_SPEC \
 
142
  "%(endian_spec) \
 
143
+ -as-needed \
 
144
   %{shared:-shared} \
 
145
   %{!shared: \
 
146
     %{!static: \
 
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
 
151
@@ -34,6 +34,7 @@
 
152
 #define GNU_USER_TARGET_LINK_SPEC "\
 
153
 %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \
 
154
 %{shared} \
 
155
+ -as-needed \
 
156
  %(endian_spec) \
 
157
   %{!shared: \
 
158
     %{!static: \
 
159
Index: b/src/libjava/Makefile.am
 
160
===================================================================
 
161
--- a/src/libjava/Makefile.am
 
162
+++ b/src/libjava/Makefile.am
 
163
@@ -625,7 +625,7 @@
 
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
 
171
 
 
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
 
184
 
 
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
 
189
@@ -1,5 +1,5 @@
 
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
 
200
@@ -1,5 +1,5 @@
 
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
 
211
@@ -1,5 +1,5 @@
 
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
 
222
@@ -1,5 +1,5 @@
 
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
 
233
@@ -1,5 +1,5 @@
 
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
 
244
@@ -1,5 +1,5 @@
 
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
 
255
@@ -1,5 +1,5 @@
 
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
 
266
@@ -1,5 +1,5 @@
 
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
 
277
@@ -1,5 +1,5 @@
 
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
 
288
@@ -1,5 +1,5 @@
 
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
 
299
@@ -1,5 +1,5 @@
 
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
 
310
@@ -1,5 +1,5 @@
 
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
 
321
@@ -1,5 +1,5 @@
 
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
 
332
@@ -1,5 +1,5 @@
 
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
 
343
@@ -1,5 +1,5 @@
 
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
 
354
@@ -1,5 +1,5 @@
 
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
 
365
@@ -1,5 +1,5 @@
 
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
 
376
@@ -1,5 +1,5 @@
 
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
 
387
@@ -1,5 +1,5 @@
 
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
 
398
@@ -1,5 +1,5 @@
 
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
 
409
@@ -1,5 +1,5 @@
 
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
 
420
@@ -1,5 +1,5 @@
 
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
 
431
@@ -1,5 +1,5 @@
 
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
 
442
@@ -1,5 +1,5 @@
 
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
 
453
@@ -1,5 +1,5 @@
 
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
 
464
@@ -1,5 +1,5 @@
 
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
 
475
@@ -1,5 +1,5 @@
 
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
 
486
@@ -1,5 +1,5 @@
 
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
 
497
@@ -1,5 +1,5 @@
 
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
 
508
@@ -1,5 +1,5 @@
 
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
 
519
@@ -1,5 +1,5 @@
 
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
 
530
@@ -1,5 +1,5 @@
 
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
 
541
@@ -1,5 +1,5 @@
 
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
 
552
@@ -1,5 +1,5 @@
 
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
 
563
@@ -1,5 +1,5 @@
 
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
 
574
@@ -1,5 +1,5 @@
 
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
 
585
@@ -1,5 +1,5 @@
 
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
 
596
@@ -1,5 +1,5 @@
 
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
 
607
@@ -1,5 +1,5 @@
 
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
 
618
@@ -1,5 +1,5 @@
 
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
 
629
@@ -1,5 +1,5 @@
 
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
 
640
@@ -1,5 +1,5 @@
 
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
 
651
@@ -1,5 +1,5 @@
 
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
 
662
@@ -1,5 +1,5 @@
 
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
 
673
@@ -1,5 +1,5 @@
 
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
 
684
@@ -1,5 +1,5 @@
 
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
 
695
@@ -1,5 +1,5 @@
 
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
 
706
@@ -1,5 +1,5 @@
 
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
 
717
@@ -1,5 +1,5 @@
 
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
 
728
@@ -1,5 +1,5 @@
 
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
 
739
@@ -1,5 +1,5 @@
 
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
 
750
@@ -1,5 +1,5 @@
 
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
 
761
@@ -1,5 +1,5 @@
 
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
 
772
@@ -1,5 +1,5 @@
 
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
 
783
@@ -1,5 +1,5 @@
 
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
 
794
@@ -1,5 +1,5 @@
 
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
 
805
@@ -1,5 +1,5 @@
 
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
 
816
@@ -1,5 +1,5 @@
 
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
 
827
@@ -1,5 +1,5 @@
 
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
 
838
@@ -1,5 +1,5 @@
 
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
 
849
@@ -1,5 +1,5 @@
 
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
 
860
@@ -1,5 +1,5 @@
 
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
 
871
@@ -1,5 +1,5 @@
 
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
 
882
@@ -1,5 +1,5 @@
 
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
 
893
@@ -1,5 +1,5 @@
 
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
 
904
@@ -1,5 +1,5 @@
 
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
 
915
@@ -1,5 +1,5 @@
 
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
 
926
@@ -1,5 +1,5 @@
 
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
 
937
@@ -1,5 +1,5 @@
 
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
 
948
@@ -1,5 +1,5 @@
 
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
 
959
@@ -1,5 +1,5 @@
 
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 "" }