1 2include $(top_srcdir)/Makefile.tool-tests.am 3 4SUBDIRS = . 5 6# Arch-specific tests. 7if VGCONF_ARCHS_INCLUDE_X86 8SUBDIRS += x86 9endif 10if VGCONF_ARCHS_INCLUDE_AMD64 11SUBDIRS += amd64 12endif 13if VGCONF_ARCHS_INCLUDE_PPC32 14SUBDIRS += ppc32 15endif 16if VGCONF_ARCHS_INCLUDE_PPC64 17SUBDIRS += ppc64 18endif 19if VGCONF_ARCHS_INCLUDE_S390X 20SUBDIRS += s390x 21endif 22 23# OS-specific tests 24if VGCONF_OS_IS_LINUX 25SUBDIRS += linux 26endif 27if VGCONF_OS_IS_DARWIN 28SUBDIRS += darwin 29endif 30 31# Platform-specific tests 32if VGCONF_PLATFORMS_INCLUDE_X86_LINUX 33SUBDIRS += x86-linux 34endif 35if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX 36SUBDIRS += amd64-linux 37endif 38 39DIST_SUBDIRS = x86 amd64 ppc32 ppc64 s390x linux \ 40 darwin x86-linux amd64-linux common . 41 42dist_noinst_SCRIPTS = \ 43 filter_addressable \ 44 filter_allocs \ 45 filter_dw4 \ 46 filter_leak_cases_possible \ 47 filter_stderr filter_xml \ 48 filter_strchr \ 49 filter_varinfo3 \ 50 filter_memcheck 51 52noinst_HEADERS = leak.h 53 54EXTRA_DIST = \ 55 accounting.stderr.exp accounting.vgtest \ 56 addressable.stderr.exp addressable.stdout.exp addressable.vgtest \ 57 atomic_incs.stderr.exp atomic_incs.vgtest \ 58 atomic_incs.stdout.exp-32bit atomic_incs.stdout.exp-64bit \ 59 badaddrvalue.stderr.exp \ 60 badaddrvalue.stdout.exp badaddrvalue.vgtest \ 61 badfree-2trace.stderr.exp badfree-2trace.vgtest \ 62 badfree.stderr.exp badfree.vgtest \ 63 badfree3.stderr.exp badfree3.vgtest \ 64 badjump.stderr.exp badjump.vgtest \ 65 badjump2.stderr.exp badjump2.vgtest \ 66 badjump.stderr.exp-kfail \ 67 badjump2.stderr.exp-kfail \ 68 badloop.stderr.exp badloop.vgtest \ 69 badpoll.stderr.exp badpoll.vgtest \ 70 badrw.stderr.exp badrw.vgtest badrw.stderr.exp-s390x-mvc \ 71 big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \ 72 brk2.stderr.exp brk2.vgtest \ 73 buflen_check.stderr.exp buflen_check.vgtest \ 74 buflen_check.stderr.exp-kfail \ 75 bug155125.stderr.exp bug155125.vgtest \ 76 bug287260.stderr.exp bug287260.vgtest \ 77 calloc-overflow.stderr.exp calloc-overflow.vgtest\ 78 client-msg.stderr.exp client-msg.vgtest \ 79 client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \ 80 clientperm.stderr.exp \ 81 clientperm.stdout.exp clientperm.vgtest \ 82 clireq_nofill.stderr.exp \ 83 clireq_nofill.stdout.exp clireq_nofill.vgtest \ 84 clo_redzone_default.vgtest clo_redzone_128.vgtest \ 85 clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \ 86 cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \ 87 cond_ld.stderr.exp-64bit-non-arm \ 88 cond_ld.stderr.exp-32bit-non-arm \ 89 cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \ 90 cond_st.stderr.exp-64bit-non-arm \ 91 cond_st.stderr.exp-32bit-non-arm \ 92 leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest \ 93 custom_alloc.stderr.exp custom_alloc.vgtest \ 94 custom_alloc.stderr.exp-s390x-mvc \ 95 custom-overlap.stderr.exp custom-overlap.vgtest \ 96 deep-backtrace.vgtest deep-backtrace.stderr.exp \ 97 demangle.stderr.exp demangle.vgtest \ 98 describe-block.stderr.exp describe-block.vgtest \ 99 descr_belowsp.vgtest descr_belowsp.stderr.exp \ 100 doublefree.stderr.exp doublefree.vgtest \ 101 dw4.vgtest dw4.stderr.exp dw4.stdout.exp \ 102 err_disable1.vgtest err_disable1.stderr.exp \ 103 err_disable2.vgtest err_disable2.stderr.exp \ 104 err_disable3.vgtest err_disable3.stderr.exp \ 105 err_disable4.vgtest err_disable4.stderr.exp \ 106 err_disable_arange1.vgtest err_disable_arange1.stderr.exp \ 107 erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \ 108 error_counts.stderr.exp error_counts.vgtest \ 109 errs1.stderr.exp errs1.vgtest \ 110 exitprog.stderr.exp exitprog.vgtest \ 111 execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \ 112 execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \ 113 file_locking.stderr.exp file_locking.vgtest \ 114 fprw.stderr.exp fprw.stderr.exp-mips32-be fprw.stderr.exp-mips32-le \ 115 fprw.vgtest \ 116 fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \ 117 holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \ 118 holey_buffer_too_small.stderr.exp \ 119 inits.stderr.exp inits.vgtest \ 120 inline.stderr.exp inline.stdout.exp inline.vgtest \ 121 inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \ 122 inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \ 123 inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \ 124 inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \ 125 inltemplate.stderr.exp-old-gcc \ 126 leak-0.vgtest leak-0.stderr.exp \ 127 leak-cases-full.vgtest leak-cases-full.stderr.exp \ 128 leak-cases-possible.vgtest leak-cases-possible.stderr.exp \ 129 leak-cases-summary.vgtest leak-cases-summary.stderr.exp \ 130 leak-cycle.vgtest leak-cycle.stderr.exp \ 131 leak-delta.vgtest leak-delta.stderr.exp \ 132 leak-pool-0.vgtest leak-pool-0.stderr.exp \ 133 leak-pool-1.vgtest leak-pool-1.stderr.exp \ 134 leak-pool-2.vgtest leak-pool-2.stderr.exp \ 135 leak-pool-3.vgtest leak-pool-3.stderr.exp \ 136 leak-pool-4.vgtest leak-pool-4.stderr.exp \ 137 leak-pool-5.vgtest leak-pool-5.stderr.exp \ 138 leak-tree.vgtest leak-tree.stderr.exp \ 139 leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \ 140 lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \ 141 long_namespace_xml.vgtest long_namespace_xml.stdout.exp \ 142 long_namespace_xml.stderr.exp \ 143 long-supps.vgtest long-supps.stderr.exp long-supps.supp \ 144 mallinfo.stderr.exp mallinfo.vgtest \ 145 malloc_free_fill.vgtest \ 146 malloc_free_fill.stderr.exp \ 147 malloc_usable.stderr.exp malloc_usable.vgtest \ 148 malloc1.stderr.exp malloc1.vgtest \ 149 malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \ 150 malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \ 151 malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \ 152 malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \ 153 malloc2.stderr.exp malloc2.vgtest \ 154 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \ 155 manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \ 156 manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \ 157 manuel2.vgtest \ 158 manuel3.stderr.exp manuel3.vgtest \ 159 match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \ 160 memalign_test.stderr.exp memalign_test.vgtest \ 161 memalign2.stderr.exp memalign2.vgtest \ 162 memcmptest.stderr.exp memcmptest.stderr.exp2 \ 163 memcmptest.stdout.exp memcmptest.vgtest \ 164 mempool.stderr.exp mempool.vgtest \ 165 mempool2.stderr.exp mempool2.vgtest \ 166 metadata.stderr.exp metadata.stdout.exp metadata.vgtest \ 167 mismatches.stderr.exp mismatches.vgtest \ 168 mmaptest.stderr.exp mmaptest.vgtest \ 169 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \ 170 nanoleak2.stderr.exp nanoleak2.vgtest \ 171 new_nothrow.stderr.exp new_nothrow.vgtest \ 172 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \ 173 noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \ 174 null_socket.stderr.exp null_socket.vgtest \ 175 origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \ 176 origin2-not-quite.vgtest origin2-not-quite.stdout.exp \ 177 origin2-not-quite.stderr.exp \ 178 origin3-no.vgtest origin3-no.stdout.exp \ 179 origin3-no.stderr.exp \ 180 origin4-many.vgtest origin4-many.stdout.exp \ 181 origin4-many.stderr.exp \ 182 origin5-bz2.vgtest origin5-bz2.stdout.exp \ 183 origin5-bz2.stderr.exp-glibc25-x86 \ 184 origin5-bz2.stderr.exp-glibc25-amd64 \ 185 origin5-bz2.stderr.exp-glibc25-amd64-b \ 186 origin5-bz2.stderr.exp-glibc27-ppc64 \ 187 origin5-bz2.stderr.exp-glibc212-s390x \ 188 origin5-bz2.stderr.exp-glibc234-s390x \ 189 origin5-bz2.stderr.exp-glibc218-mips32 \ 190 origin5-bz2.stderr.exp-glibc212-tilegx \ 191 origin6-fp.vgtest origin6-fp.stdout.exp \ 192 origin6-fp.stderr.exp-glibc25-amd64 \ 193 origin6-fp.stderr.exp-glibc27-ppc64 \ 194 origin6-fp.stderr.exp-glibc212-tilegx \ 195 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \ 196 partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \ 197 partiallydefinedeq.stderr.exp4 \ 198 partiallydefinedeq.stderr.exp3 \ 199 partiallydefinedeq.stderr.exp2 \ 200 partiallydefinedeq.stdout.exp \ 201 partial_load_ok.vgtest partial_load_ok.stderr.exp \ 202 partial_load_ok.stderr.exp64 \ 203 partial_load_dflt.vgtest partial_load_dflt.stderr.exp \ 204 partial_load_dflt.stderr.exp64 \ 205 partial_load_dflt.stderr.expr-s390x-mvc \ 206 pdb-realloc.stderr.exp pdb-realloc.vgtest \ 207 pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \ 208 pipe.stderr.exp pipe.vgtest \ 209 pointer-trace.vgtest \ 210 pointer-trace.stderr.exp \ 211 post-syscall.stderr.exp post-syscall.vgtest \ 212 reach_thread_register.stderr.exp reach_thread_register.vgtest \ 213 reach_thread_register.stderr.exp-mips32 \ 214 reach_thread_register.stderr.exp-mips64 \ 215 realloc1.stderr.exp realloc1.vgtest \ 216 realloc2.stderr.exp realloc2.vgtest \ 217 realloc3.stderr.exp realloc3.vgtest \ 218 recursive-merge.stderr.exp recursive-merge.vgtest \ 219 resvn_stack.stderr.exp resvn_stack.vgtest \ 220 sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \ 221 sem.stderr.exp sem.vgtest \ 222 sendmsg.stderr.exp sendmsg.vgtest \ 223 sh-mem.stderr.exp sh-mem.vgtest \ 224 sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \ 225 sh-mem-random.stdout.exp sh-mem-random.vgtest \ 226 sigaltstack.stderr.exp sigaltstack.vgtest \ 227 sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-mips32 \ 228 sigkill.vgtest \ 229 signal2.stderr.exp signal2.stdout.exp signal2.vgtest \ 230 sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \ 231 static_malloc.stderr.exp static_malloc.vgtest \ 232 stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \ 233 strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \ 234 str_tester.stderr.exp str_tester.vgtest \ 235 supp-dir.vgtest supp-dir.stderr.exp \ 236 supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \ 237 supp_unknown.stderr.exp-kfail \ 238 supp1.stderr.exp supp1.vgtest \ 239 supp2.stderr.exp supp2.vgtest \ 240 supp.supp \ 241 suppfree.stderr.exp suppfree.supp suppfree.vgtest \ 242 suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \ 243 supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \ 244 suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \ 245 test-plo-no.vgtest test-plo-no.stdout.exp \ 246 test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \ 247 test-plo-yes.vgtest test-plo-yes.stdout.exp \ 248 test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \ 249 test-plo-no.stderr.exp-s390x-mvc \ 250 thread_alloca.stderr.exp thread_alloca.vgtest \ 251 trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \ 252 undef_malloc_args.stderr.exp undef_malloc_args.vgtest \ 253 unit_libcbase.stderr.exp unit_libcbase.vgtest \ 254 unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \ 255 varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \ 256 varinfo1.stderr.exp-ppc64 \ 257 varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \ 258 varinfo2.stderr.exp-ppc64 \ 259 varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \ 260 varinfo3.stderr.exp-ppc64 \ 261 varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \ 262 varinfo4.stderr.exp-ppc64 \ 263 varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \ 264 varinfo5.stderr.exp-ppc64 \ 265 varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \ 266 varinfo6.stderr.exp-ppc64 \ 267 varinforestrict.vgtest varinforestrict.stderr.exp \ 268 vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \ 269 vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \ 270 vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \ 271 vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \ 272 wcs.vgtest wcs.stderr.exp wcs.stdout.exp \ 273 wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \ 274 wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \ 275 wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \ 276 wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \ 277 wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \ 278 wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \ 279 wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \ 280 wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \ 281 wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \ 282 writev1.stderr.exp writev1.vgtest \ 283 xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc \ 284 threadname.vgtest threadname.stderr.exp \ 285 threadname_xml.vgtest threadname_xml.stderr.exp 286 287check_PROGRAMS = \ 288 accounting \ 289 addressable \ 290 atomic_incs \ 291 badaddrvalue badfree badjump badjump2 \ 292 badloop \ 293 badpoll \ 294 badrw \ 295 big_blocks_freed_list \ 296 brk2 \ 297 buflen_check \ 298 bug155125 \ 299 bug287260 \ 300 calloc-overflow \ 301 client-msg \ 302 clientperm \ 303 clireq_nofill \ 304 clo_redzone \ 305 cond_ld_st \ 306 descr_belowsp \ 307 leak_cpp_interior \ 308 custom_alloc \ 309 custom-overlap \ 310 demangle \ 311 deep-backtrace \ 312 describe-block \ 313 doublefree error_counts errs1 exitprog execve1 execve2 erringfds \ 314 err_disable1 err_disable2 err_disable3 err_disable4 \ 315 err_disable_arange1 \ 316 file_locking \ 317 fprw fwrite inits inline inlinfo inltemplate \ 318 holey_buffer_too_small \ 319 leak-0 \ 320 leak-cases \ 321 leak-cycle \ 322 leak-delta \ 323 leak-pool \ 324 leak-tree \ 325 leak-segv-jmp \ 326 long_namespace_xml \ 327 long-supps \ 328 mallinfo \ 329 malloc_free_fill \ 330 malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \ 331 match-overrun \ 332 memalign_test memalign2 memcmptest mempool mempool2 mmaptest \ 333 mismatches new_override metadata \ 334 nanoleak_supp nanoleak2 new_nothrow \ 335 noisy_child \ 336 null_socket \ 337 origin1-yes origin2-not-quite origin3-no \ 338 origin4-many origin5-bz2 origin6-fp \ 339 overlap \ 340 partiallydefinedeq \ 341 partial_load pdb-realloc pdb-realloc2 \ 342 pipe pointer-trace \ 343 post-syscall \ 344 realloc1 realloc2 realloc3 \ 345 recursive-merge \ 346 resvn_stack \ 347 sbfragment \ 348 sendmsg \ 349 sh-mem sh-mem-random \ 350 sigaltstack signal2 sigprocmask static_malloc sigkill \ 351 strchr \ 352 str_tester \ 353 supp_unknown supp1 supp2 suppfree \ 354 test-plo \ 355 trivialleak \ 356 thread_alloca \ 357 undef_malloc_args \ 358 unit_libcbase unit_oset \ 359 varinfo1 varinfo2 varinfo3 varinfo4 \ 360 varinfo5 varinfo5so.so varinfo6 \ 361 varinforestrict \ 362 vcpu_fbench vcpu_fnfns \ 363 wcs \ 364 xml1 \ 365 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \ 366 writev1 367 368if DWARF4 369check_PROGRAMS += dw4 370endif 371 372if HAVE_GNU_STPNCPY 373check_PROGRAMS += stpncpy 374endif 375 376if HAVE_PTHREAD_SETNAME_NP 377check_PROGRAMS += threadname 378endif 379 380if HAVE_PTHREAD_BARRIER 381check_PROGRAMS += reach_thread_register 382endif 383 384AM_CFLAGS += $(AM_FLAG_M3264_PRI) 385AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) 386 387if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX 388#AM_CFLAGS += -mfloat-abi=softfp 389#AM_CXXFLAGS += -mfloat-abi=softfp 390endif 391 392if VGCONF_OS_IS_DARWIN 393atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic 394else 395atomic_incs_CFLAGS = $(AM_CFLAGS) 396endif 397 398leak_cpp_interior_SOURCES = leak_cpp_interior.cpp 399 400demangle_SOURCES = demangle.cpp 401 402dw4_CFLAGS = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section 403 404descr_belowsp_LDADD = -lpthread 405err_disable3_LDADD = -lpthread 406err_disable4_LDADD = -lpthread 407reach_thread_register_CFLAGS = $(AM_CFLAGS) -O2 408reach_thread_register_LDADD = -lpthread 409thread_alloca_LDADD = -lpthread 410threadname_LDADD = -lpthread 411 412error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 413 414execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ 415 416execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ 417 418fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 419 420inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 421 422inlinfo_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_STATIC_LOCAL_IN_INLINE@ 423 424inltemplate_SOURCES = inltemplate.cpp 425inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@ 426 427long_namespace_xml_SOURCES = long_namespace_xml.cpp 428 429manuel1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 430 431memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp 432 433mismatches_SOURCES = mismatches.cpp 434 435new_nothrow_SOURCES = new_nothrow.cpp 436new_override_SOURCES = new_override.cpp 437 438origin1_yes_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 439 440origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 441 442origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 443 444# This requires optimisation in order to get just one resulting error. 445origin4_many_CFLAGS = $(AM_CFLAGS) -O 446 447# Apply -O so as to run in reasonable time. 448origin5_bz2_CFLAGS = $(AM_CFLAGS) -O -Wno-inline 449origin6_fp_CFLAGS = $(AM_CFLAGS) -O 450 451# Don't allow GCC to inline memcpy() and strcpy(), 452# because then we can't intercept it 453overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy 454 455str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow 456 457supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 458 459supp_unknown_SOURCES = badjump.c 460supp_unknown_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 461 462supp1_SOURCES = supp.c 463supp1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 464 465supp2_SOURCES = supp.c 466supp2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ 467 468vcpu_bz2_CFLAGS = $(AM_CFLAGS) -O2 469vcpu_fbench_CFLAGS = $(AM_CFLAGS) -O2 470vcpu_fnfns_CFLAGS = $(AM_CFLAGS) -O2 471vcpu_fnfns_LDADD = -lm 472wrap6_CFLAGS = $(AM_CFLAGS) -O2 473 474# To make it a bit more realistic, have some optimisation enabled 475# for the varinfo tests. We still expect sane results. 476varinfo1_CFLAGS = $(AM_CFLAGS) -O 477varinfo2_CFLAGS = $(AM_CFLAGS) -O -Wno-shadow 478varinfo3_CFLAGS = $(AM_CFLAGS) -O 479varinfo4_CFLAGS = $(AM_CFLAGS) -O 480varinfo5_CFLAGS = $(AM_CFLAGS) -O 481varinfo6_CFLAGS = $(AM_CFLAGS) -O 482 483# Build shared object for varinfo5 484varinfo5_SOURCES = varinfo5.c 485varinfo5_DEPENDENCIES = varinfo5so.so 486if VGCONF_OS_IS_DARWIN 487 varinfo5_LDADD = `pwd`/varinfo5so.so 488 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI) 489else 490 varinfo5_LDADD = varinfo5so.so 491 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI) \ 492 -Wl,-rpath,$(top_builddir)/memcheck/tests 493endif 494 495varinfo5so_so_SOURCES = varinfo5so.c 496varinfo5so_so_CFLAGS = $(AM_CFLAGS) -fpic -O -Wno-shadow 497if VGCONF_OS_IS_DARWIN 498 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \ 499 -dynamiclib -all_load 500else 501 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \ 502 -Wl,-soname -Wl,varinfo5so.so 503endif 504varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g -std=c99 505 506# Build shared object for wrap7 507wrap7_SOURCES = wrap7.c 508wrap7_DEPENDENCIES = wrap7so.so 509if VGCONF_OS_IS_DARWIN 510 wrap7_LDADD = `pwd`/wrap7so.so 511 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI) 512else 513 wrap7_LDADD = wrap7so.so 514 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI) \ 515 -Wl,-rpath,$(top_builddir)/memcheck/tests 516endif 517 518wrap7so_so_SOURCES = wrap7so.c 519wrap7so_so_CFLAGS = $(AM_CFLAGS) -fpic 520if VGCONF_OS_IS_DARWIN 521 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \ 522 -dynamiclib -all_load 523else 524 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \ 525 -Wl,-soname -Wl,wrap7so.so 526endif 527 528