2 include $(top_srcdir)/Makefile.tool-tests.am
7 if VGCONF_ARCHS_INCLUDE_X86
10 if VGCONF_ARCHS_INCLUDE_AMD64
13 if VGCONF_ARCHS_INCLUDE_MIPS32
16 if VGCONF_ARCHS_INCLUDE_MIPS64
19 if VGCONF_ARCHS_INCLUDE_PPC32
22 if VGCONF_ARCHS_INCLUDE_PPC64
25 if VGCONF_ARCHS_INCLUDE_S390X
33 if VGCONF_OS_IS_DARWIN
36 if VGCONF_OS_IS_SOLARIS
40 # Platform-specific tests
41 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
44 if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX
45 SUBDIRS += amd64-linux
47 if VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX
48 SUBDIRS += arm64-linux
50 if VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS
51 SUBDIRS += x86-solaris
53 if VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS
54 SUBDIRS += amd64-solaris
57 DIST_SUBDIRS = x86 amd64 ppc32 ppc64 s390x linux \
58 darwin solaris x86-linux amd64-linux arm64-linux \
59 x86-solaris amd64-solaris mips32 mips64 \
62 dist_noinst_SCRIPTS = \
66 filter_leak_cases_possible \
67 filter_leak_cpp_interior \
68 filter_stderr filter_xml \
74 noinst_HEADERS = leak.h
77 accounting.stderr.exp accounting.vgtest \
78 addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
79 atomic_incs.stderr.exp atomic_incs.vgtest \
80 atomic_incs.stdout.exp-32bit atomic_incs.stdout.exp-64bit \
81 badaddrvalue.stderr.exp \
82 badaddrvalue.stdout.exp badaddrvalue.vgtest \
83 exit_on_first_error.stderr.exp \
84 exit_on_first_error.vgtest \
85 exit_on_first_error_with_xml.stderr.exp \
86 exit_on_first_error_with_xml.vgtest \
87 badfree-2trace.stderr.exp badfree-2trace.vgtest \
88 badfree.stderr.exp badfree.vgtest \
89 badfree3.stderr.exp badfree3.vgtest \
90 badjump.stderr.exp badjump.vgtest \
91 badjump2.stderr.exp badjump2.vgtest \
92 badjump.stderr.exp-kfail \
93 badjump2.stderr.exp-kfail \
94 badloop.stderr.exp badloop.vgtest \
95 badpoll.stderr.exp badpoll.vgtest \
96 badrw.stderr.exp badrw.vgtest badrw.stderr.exp-s390x-mvc \
97 big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \
98 brk2.stderr.exp brk2.vgtest \
99 buflen_check.stderr.exp buflen_check.vgtest \
100 buflen_check.stderr.exp-kfail \
101 bug155125.stderr.exp bug155125.vgtest \
102 bug287260.stderr.exp bug287260.vgtest \
103 bug340392.stderr.exp bug340392.vgtest \
104 calloc-overflow.stderr.exp calloc-overflow.vgtest\
105 cdebug_zlib.stderr.exp cdebug_zlib.vgtest \
106 cdebug_zlib_gnu.stderr.exp cdebug_zlib_gnu.vgtest \
107 client-msg.stderr.exp client-msg.vgtest \
108 client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \
109 clientperm.stderr.exp \
110 clientperm.stdout.exp clientperm.vgtest \
111 clireq_nofill.stderr.exp \
112 clireq_nofill.stdout.exp clireq_nofill.vgtest \
113 clo_redzone_default.vgtest clo_redzone_128.vgtest \
114 clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \
115 cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \
116 cond_ld.stderr.exp-64bit-non-arm \
117 cond_ld.stderr.exp-32bit-non-arm \
118 cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \
119 cond_st.stderr.exp-64bit-non-arm \
120 cond_st.stderr.exp-32bit-non-arm \
121 leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest libstdc++.supp \
122 custom_alloc.stderr.exp custom_alloc.vgtest \
123 custom_alloc.stderr.exp-s390x-mvc \
124 custom-overlap.stderr.exp custom-overlap.vgtest \
125 deep-backtrace.vgtest deep-backtrace.stderr.exp \
126 demangle.stderr.exp demangle.vgtest \
127 big_debuginfo_symbol.stderr.exp big_debuginfo_symbol.vgtest \
128 describe-block.stderr.exp describe-block.vgtest \
129 descr_belowsp.vgtest descr_belowsp.stderr.exp \
130 doublefree.stderr.exp doublefree.vgtest \
131 dw4.vgtest dw4.stderr.exp dw4.stderr.exp-solaris dw4.stdout.exp \
132 err_disable1.vgtest err_disable1.stderr.exp \
133 err_disable2.vgtest err_disable2.stderr.exp \
134 err_disable3.vgtest err_disable3.stderr.exp \
135 err_disable4.vgtest err_disable4.stderr.exp \
136 err_disable_arange1.vgtest err_disable_arange1.stderr.exp \
137 erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
138 error_counts.stderr.exp error_counts.vgtest \
139 errs1.stderr.exp errs1.vgtest \
140 exitprog.stderr.exp exitprog.vgtest \
141 execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \
142 execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \
143 file_locking.stderr.exp file_locking.vgtest \
144 fprw.stderr.exp fprw.stderr.exp-mips32-be fprw.stderr.exp-mips32-le \
146 fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \
147 gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \
148 holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \
149 holey_buffer_too_small.stderr.exp \
150 inits.stderr.exp inits.vgtest \
151 inline.stderr.exp inline.stdout.exp inline.vgtest \
152 inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \
153 inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \
154 inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \
155 inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \
156 inltemplate.stderr.exp-old-gcc \
157 leak-0.vgtest leak-0.stderr.exp \
158 leak-cases-full.vgtest leak-cases-full.stderr.exp \
159 leak-cases-possible.vgtest leak-cases-possible.stderr.exp \
160 leak-cases-summary.vgtest leak-cases-summary.stderr.exp \
161 leak-cycle.vgtest leak-cycle.stderr.exp \
162 leak-delta.vgtest leak-delta.stderr.exp \
163 leak-pool-0.vgtest leak-pool-0.stderr.exp \
164 leak-pool-1.vgtest leak-pool-1.stderr.exp \
165 leak-pool-2.vgtest leak-pool-2.stderr.exp \
166 leak-pool-3.vgtest leak-pool-3.stderr.exp \
167 leak-pool-4.vgtest leak-pool-4.stderr.exp \
168 leak-pool-5.vgtest leak-pool-5.stderr.exp \
169 leak-autofreepool-0.vgtest leak-autofreepool-0.stderr.exp \
170 leak-autofreepool-1.vgtest leak-autofreepool-1.stderr.exp \
171 leak-autofreepool-2.vgtest leak-autofreepool-2.stderr.exp \
172 leak-autofreepool-4.vgtest leak-autofreepool-4.stderr.exp \
173 leak-autofreepool-5.vgtest leak-autofreepool-5.stderr.exp \
174 leak-autofreepool-6.vgtest leak-autofreepool-6.stderr.exp \
175 leak-tree.vgtest leak-tree.stderr.exp \
176 leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \
177 lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \
178 long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
179 long_namespace_xml.stderr.exp \
180 long-supps.vgtest long-supps.stderr.exp long-supps.supp \
181 mallinfo.stderr.exp mallinfo.vgtest \
182 malloc_free_fill.vgtest \
183 malloc_free_fill.stderr.exp \
184 malloc_usable.stderr.exp malloc_usable.vgtest \
185 malloc1.stderr.exp malloc1.vgtest \
186 malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \
187 malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \
188 malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \
189 malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \
190 malloc2.stderr.exp malloc2.vgtest \
191 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
192 manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
193 manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \
195 manuel3.stderr.exp manuel3.vgtest \
196 match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
197 memalign_test.stderr.exp memalign_test.vgtest \
198 memalign2.stderr.exp memalign2.vgtest \
199 memcmptest.stderr.exp memcmptest.stderr.exp2 \
200 memcmptest.stdout.exp memcmptest.vgtest \
201 mempool.stderr.exp mempool.vgtest \
202 mempool2.stderr.exp mempool2.vgtest \
203 metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
204 mismatches.stderr.exp mismatches.vgtest \
205 mmaptest.stderr.exp mmaptest.vgtest \
206 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
207 nanoleak_dynsupp.stderr.exp nanoleak_dynsupp.vgtest \
208 nanoleak2.stderr.exp nanoleak2.vgtest \
209 new_nothrow.stderr.exp new_nothrow.vgtest \
210 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
211 noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \
212 null_socket.stderr.exp null_socket.vgtest \
213 origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \
214 origin2-not-quite.vgtest origin2-not-quite.stdout.exp \
215 origin2-not-quite.stderr.exp \
216 origin3-no.vgtest origin3-no.stdout.exp \
217 origin3-no.stderr.exp \
218 origin4-many.vgtest origin4-many.stdout.exp \
219 origin4-many.stderr.exp \
220 origin5-bz2.vgtest origin5-bz2.stdout.exp \
221 origin5-bz2.stderr.exp-glibc25-x86 \
222 origin5-bz2.stderr.exp-glibc25-amd64 \
223 origin5-bz2.stderr.exp-glibc25-amd64-b \
224 origin5-bz2.stderr.exp-glibc27-ppc64 \
225 origin5-bz2.stderr.exp-glibc212-s390x \
226 origin5-bz2.stderr.exp-glibc234-s390x \
227 origin5-bz2.stderr.exp-glibc218-mips32 \
228 origin6-fp.vgtest origin6-fp.stdout.exp \
229 origin6-fp.stderr.exp-glibc25-amd64 \
230 origin6-fp.stderr.exp-glibc27-ppc64 \
231 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
232 partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
233 partiallydefinedeq.stderr.exp4 \
234 partiallydefinedeq.stderr.exp3 \
235 partiallydefinedeq.stderr.exp2 \
236 partiallydefinedeq.stdout.exp \
237 partial_load_ok.vgtest partial_load_ok.stderr.exp \
238 partial_load_ok.stderr.exp64 \
239 partial_load_ok.stderr.exp-ppc64 \
240 partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
241 partial_load_dflt.stderr.exp64 \
242 partial_load_dflt.stderr.exp-ppc64 \
243 partial_load_dflt.stderr.expr-s390x-mvc \
244 pdb-realloc.stderr.exp pdb-realloc.vgtest \
245 pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \
246 pipe.stderr.exp pipe.vgtest \
247 pointer-trace.vgtest \
248 pointer-trace.stderr.exp \
249 post-syscall.stderr.exp post-syscall.vgtest \
250 reach_thread_register.stderr.exp reach_thread_register.vgtest \
251 reach_thread_register.stderr.exp-mips32 \
252 reach_thread_register.stderr.exp-mips64 \
253 realloc1.stderr.exp realloc1.vgtest \
254 realloc2.stderr.exp realloc2.vgtest \
255 realloc3.stderr.exp realloc3.vgtest \
256 recursive-merge.stderr.exp recursive-merge.vgtest \
257 resvn_stack.stderr.exp resvn_stack.vgtest \
258 sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \
259 sem.stderr.exp sem.vgtest \
260 sendmsg.stderr.exp sendmsg.stderr.exp-solaris sendmsg.vgtest \
261 sh-mem.stderr.exp sh-mem.vgtest \
262 sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \
263 sh-mem-random.stdout.exp sh-mem-random.vgtest \
264 sigaltstack.stderr.exp sigaltstack.vgtest \
265 sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-mips32 \
266 sigkill.stderr.exp-solaris \
267 sigkill.stderr.exp-glibc-2.28 sigkill.vgtest \
268 signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
269 sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
270 static_malloc.stderr.exp static_malloc.vgtest \
271 stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \
272 strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \
273 str_tester.stderr.exp str_tester.vgtest \
274 supp-dir.vgtest supp-dir.stderr.exp \
275 supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
276 supp_unknown.stderr.exp-kfail \
277 supp1.stderr.exp supp1.vgtest \
278 supp2.stderr.exp supp2.vgtest \
280 suppfree.stderr.exp suppfree.supp suppfree.vgtest \
281 suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
282 supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
283 suppsrc_lineno.stderr.exp suppsrc_lineno.stdout.exp suppsrc_lineno.vgtest \
284 suppsrc_lineno.supp \
285 suppsrc_sanlineno.stderr.exp suppsrc_sanlineno.stdout.exp suppsrc_sanlineno.vgtest \
286 suppsrc_sanlineno.supp \
287 suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \
288 test-plo-no.vgtest test-plo-no.stdout.exp \
289 test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
290 test-plo-yes.vgtest test-plo-yes.stdout.exp \
291 test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \
292 test-plo-no.stderr.exp-s390x-mvc \
293 thread_alloca.stderr.exp thread_alloca.vgtest \
294 threadname.vgtest threadname.stderr.exp \
295 threadname_xml.vgtest threadname_xml.stderr.exp \
296 trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \
297 undef_malloc_args.stderr.exp undef_malloc_args.vgtest \
298 unit_libcbase.stderr.exp unit_libcbase.vgtest \
299 unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
300 varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \
301 varinfo1.stderr.exp-ppc64 \
302 varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \
303 varinfo2.stderr.exp-ppc64 \
304 varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \
305 varinfo3.stderr.exp-ppc64 \
306 varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \
307 varinfo4.stderr.exp-ppc64 \
308 varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \
309 varinfo5.stderr.exp-ppc64 \
310 varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \
311 varinfo6.stderr.exp-ppc64 \
312 varinforestrict.vgtest varinforestrict.stderr.exp \
313 vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \
314 vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \
315 vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \
316 vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stdout.exp-solaris \
317 vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \
318 wcs.vgtest wcs.stderr.exp wcs.stdout.exp \
319 wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \
320 wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \
321 wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \
322 wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \
323 wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \
324 wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \
325 wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \
326 wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \
327 wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \
328 wrapmalloc.vgtest wrapmalloc.stdout.exp wrapmalloc.stderr.exp \
329 wrapmallocstatic.vgtest wrapmallocstatic.stdout.exp \
330 wrapmallocstatic.stderr.exp \
331 writev1.stderr.exp writev1.stderr.exp-solaris writev1.vgtest \
332 xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc
338 badaddrvalue badfree badjump badjump2 \
342 big_blocks_freed_list \
359 big_debuginfo_symbol \
362 doublefree error_counts errs1 exitprog execve1 execve2 erringfds \
363 err_disable1 err_disable2 err_disable3 err_disable4 \
364 err_disable_arange1 \
366 fprw fwrite inits inline inlinfo inltemplate \
367 holey_buffer_too_small \
379 malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
381 memalign_test memalign2 memcmptest mempool mempool2 mmaptest \
382 mismatches new_override metadata \
383 nanoleak_supp nanoleak2 new_nothrow \
386 origin1-yes origin2-not-quite origin3-no \
387 origin4-many origin5-bz2 origin6-fp \
390 partial_load pdb-realloc pdb-realloc2 \
393 realloc1 realloc2 realloc3 \
398 sh-mem sh-mem-random \
399 sigaltstack signal2 sigprocmask static_malloc sigkill \
402 supp_unknown supp1 supp2 suppfree \
407 unit_libcbase unit_oset \
408 varinfo1 varinfo2 varinfo3 varinfo4 \
409 varinfo5 varinfo5so.so varinfo6 \
411 vcpu_fbench vcpu_fnfns \
414 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \
415 wrapmalloc wrapmallocso.so wrapmallocstatic \
418 if !SOLARIS_SUN_STUDIO_AS
419 # Sun Studio assembler fails on "IDENT too long"
420 check_PROGRAMS += long_namespace_xml
424 check_PROGRAMS += dw4
428 check_PROGRAMS += cdebug_zlib
429 cdebug_zlib_SOURCES = cdebug.c
430 cdebug_zlib_CFLAGS = $(AM_CFLAGS) -g -gz=zlib @FLAG_W_NO_UNINITIALIZED@
434 check_PROGRAMS += cdebug_zlib_gnu
435 cdebug_zlib_gnu_SOURCES = cdebug.c
436 cdebug_zlib_gnu_CFLAGS = $(AM_CFLAGS) -g -gz=zlib-gnu @FLAG_W_NO_UNINITIALIZED@
440 check_PROGRAMS += stpncpy
443 if HAVE_PTHREAD_SETNAME_NP
444 check_PROGRAMS += threadname
447 if HAVE_PTHREAD_BARRIER
448 check_PROGRAMS += reach_thread_register
451 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
452 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
454 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
455 #AM_CFLAGS += -mfloat-abi=softfp
456 #AM_CXXFLAGS += -mfloat-abi=softfp
459 if VGCONF_OS_IS_DARWIN
460 atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
462 atomic_incs_CFLAGS = $(AM_CFLAGS)
465 if VGCONF_OS_IS_SOLARIS
466 buflen_check_LDADD = -lsocket -lnsl
469 leak_cpp_interior_SOURCES = leak_cpp_interior.cpp
471 demangle_SOURCES = demangle.cpp
473 big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
474 big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
476 bug340392_CFLAGS = $(AM_CFLAGS) -O3
477 dw4_CFLAGS = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section
479 descr_belowsp_LDADD = -lpthread
480 err_disable3_LDADD = -lpthread
481 err_disable4_LDADD = -lpthread
482 err_disable4_CFLAGS = $(AM_CFLAGS)
483 if VGCONF_OS_IS_SOLARIS
484 err_disable4_CFLAGS += -D_XOPEN_SOURCE=600
486 reach_thread_register_CFLAGS = $(AM_CFLAGS) -O2
487 reach_thread_register_LDADD = -lpthread
488 thread_alloca_LDADD = -lpthread
489 threadname_LDADD = -lpthread
491 error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
493 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
495 execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
497 fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
499 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
501 inlinfo_CFLAGS = $(AM_CFLAGS) -w
503 inltemplate_SOURCES = inltemplate.cpp
504 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
506 long_namespace_xml_SOURCES = long_namespace_xml.cpp
508 manuel1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
510 memalign2_CFLAGS = $(AM_CFLAGS)
511 if VGCONF_OS_IS_SOLARIS
512 memalign2_CFLAGS += -D__EXTENSIONS__
515 memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
517 mismatches_SOURCES = mismatches.cpp
518 mismatches_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
520 new_nothrow_SOURCES = new_nothrow.cpp
521 new_override_SOURCES = new_override.cpp
523 if VGCONF_OS_IS_SOLARIS
524 null_socket_LDADD = -lsocket -lnsl
527 origin1_yes_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
529 origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
531 origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
533 # This requires optimisation in order to get just one resulting error.
534 origin4_many_CFLAGS = $(AM_CFLAGS) -O
536 # Apply -O so as to run in reasonable time.
537 origin5_bz2_CFLAGS = $(AM_CFLAGS) -O -Wno-inline
538 origin6_fp_CFLAGS = $(AM_CFLAGS) -O
540 # Don't allow GCC to inline memcpy() and strcpy(),
541 # because then we can't intercept it
542 overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy
544 resvn_stack_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
546 sendmsg_CFLAGS = $(AM_CFLAGS)
547 if VGCONF_OS_IS_SOLARIS
548 sendmsg_CFLAGS += -D_XOPEN_SOURCE=600
549 sendmsg_LDADD = -lsocket -lnsl
552 str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow \
553 @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@
555 supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
557 supp_unknown_SOURCES = badjump.c
558 supp_unknown_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
560 supp1_SOURCES = supp.c
561 supp1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
563 supp2_SOURCES = supp.c
564 supp2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
566 vcpu_bz2_CFLAGS = $(AM_CFLAGS) -O2
567 vcpu_fbench_CFLAGS = $(AM_CFLAGS) -O2
568 vcpu_fnfns_CFLAGS = $(AM_CFLAGS) -O2
569 vcpu_fnfns_LDADD = -lm
570 wrap6_CFLAGS = $(AM_CFLAGS) -O2
572 # To make it a bit more realistic, have some optimisation enabled
573 # for the varinfo tests. We still expect sane results.
574 varinfo1_CFLAGS = $(AM_CFLAGS) -O
575 varinfo2_CFLAGS = $(AM_CFLAGS) -O -Wno-shadow
576 varinfo3_CFLAGS = $(AM_CFLAGS) -O
577 varinfo4_CFLAGS = $(AM_CFLAGS) -O
578 varinfo5_CFLAGS = $(AM_CFLAGS) -O
579 varinfo6_CFLAGS = $(AM_CFLAGS) -O
581 # Build shared object for varinfo5
582 varinfo5_SOURCES = varinfo5.c
583 varinfo5_DEPENDENCIES = varinfo5so.so
584 if VGCONF_OS_IS_DARWIN
585 varinfo5_LDADD = `pwd`/varinfo5so.so
586 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI)
588 varinfo5_LDADD = varinfo5so.so
589 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI) \
590 -Wl,-rpath,$(top_builddir)/memcheck/tests
593 varinfo5so_so_SOURCES = varinfo5so.c
594 varinfo5so_so_CFLAGS = $(AM_CFLAGS) -fpic -O -Wno-shadow
595 if VGCONF_OS_IS_DARWIN
596 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
597 -dynamiclib -all_load
599 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
600 -Wl,-soname -Wl,varinfo5so.so
602 varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g
604 # Build shared object for wrap7
605 wrap7_SOURCES = wrap7.c
606 wrap7_DEPENDENCIES = wrap7so.so
607 if VGCONF_OS_IS_DARWIN
608 wrap7_LDADD = `pwd`/wrap7so.so
609 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI)
611 wrap7_LDADD = wrap7so.so
612 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI) \
613 -Wl,-rpath,$(top_builddir)/memcheck/tests
616 wrap7so_so_SOURCES = wrap7so.c
617 wrap7so_so_CFLAGS = $(AM_CFLAGS) -fpic
618 if VGCONF_OS_IS_DARWIN
619 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
620 -dynamiclib -all_load
622 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
623 -Wl,-soname -Wl,wrap7so.so
626 # Build shared object for wrapmalloc
627 wrapmalloc_SOURCES = wrapmalloc.c
628 wrapmalloc_DEPENDENCIES = wrapmallocso.so
629 if VGCONF_OS_IS_DARWIN
630 wrapmalloc_LDADD = `pwd`/wrapmallocso.so
631 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI)
633 wrapmalloc_LDADD = wrapmallocso.so
634 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI) \
635 -Wl,-rpath,$(top_builddir)/memcheck/tests
638 wrapmallocso_so_SOURCES = wrapmallocso.c
639 wrapmallocso_so_CFLAGS = $(AM_CFLAGS) -fpic
640 if VGCONF_OS_IS_DARWIN
641 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
642 -dynamiclib -all_load
644 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
645 -Wl,-soname -Wl,wrapmallocso.so
648 xml1_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE