diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2004-06-04 20:12:01 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2004-06-04 20:12:01 +0000 |
commit | 94a4e03cf0182ce483d26b42124cb72b9abf3301 (patch) | |
tree | d248b4bcf141c1cec13d21a71e4945815f2ccb44 /libmudflap/testsuite/lib | |
parent | f168ec09bb26fa2e55d495bb593973aa8fae8b12 (diff) |
2004-06-04 Frank Ch. Eigler <fche@redhat.com>
Portability improvements, e.g., libmudflap/15293.
* configure.in: Look for glibc extension functions. Look for
support of -f{function,data}-sections. Look for more headers.
Create testsuite/mfconfig.exp. Correct more "test x.." thinkos.
* Makefile.am: Use $(SECTION_FLAGS). Collapse piecemeal-compiled
mf-hooks* into usual single object per source.
* mf-hooks*.c: Remove all #if WRAP_foo conditionals.
* mf-hooks2.c: #include a bunch more system headers. Define strnlen
if system doesn't provide one.
* mf-hooks3.c (struct pthread_info): Add stack_*_alloc fields.
(pthread_create): Use it to properly GC dead thread stacks.
* mf-runtime.c (__mf_violation): Correct snprintf type warning.
* testsuite/Makefile.am: Stop generating site.exp.
* testsuite/mfconfig.exp.in: New file.
* testsuite/config/default.exp: Load new mfconfig.exp.
* testsuite/lib/libmudflap.exp (libmudflap-init): Add extra libraries.
(prune_gcc_output): Add glibc static linking warnings.
* testsuite/libmudflap.*/*frags.exp: Enumerate needed -lmudflap* libs.
* testsuite/libmudflap.c/pass46-frag.c: Ditto.
* configure, Makefile, aclocal.m4, config.h.in, testsuite/Makefile.in:
Regenerated with autoconf 2.57 and automake 1.7.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@82632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap/testsuite/lib')
-rw-r--r-- | libmudflap/testsuite/lib/libmudflap.exp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libmudflap/testsuite/lib/libmudflap.exp b/libmudflap/testsuite/lib/libmudflap.exp index 6f4b1550c0c..04a17209fd7 100644 --- a/libmudflap/testsuite/lib/libmudflap.exp +++ b/libmudflap/testsuite/lib/libmudflap.exp @@ -17,10 +17,10 @@ # Define libmudflap callbacks for dg.exp. # This file is a copy of libstdc++-v3's dejagnu driver, with minor changes. - load_lib mfdg.exp load_lib libgloss.exp + proc libmudflap-init { language } { global srcdir global outdir @@ -92,6 +92,10 @@ proc libmudflap-init { language } { } } + global mfconfig_libs + global add_flags + append add_flags " $mfconfig_libs" + verbose -log "ld_library_path=$ld_library_path" setenv LD_LIBRARY_PATH $ld_library_path setenv SHLIB_PATH $ld_library_path @@ -152,6 +156,9 @@ proc libmudflap-dg-test { prog do_what extra_tool_flags } { lappend options "additional_flags=$extra_tool_flags" } + global mfconfig_libs + lappend options "libs=$mfconfig_libs" + set comp_output [libmudflap_target_compile "$prog" "$output_file" "$compile_type" $options]; set comp_output [prune_gcc_output $comp_output ]; @@ -244,14 +251,12 @@ proc libmudflap-list-sourcefiles { } { proc prune_gcc_output { text } { - regsub -all {(^|\n)[^\n]*ld: warning: libgcc_s[^\n]*not found[^\n]*try using[^\n]*} $text "" text - regsub -all {(^|\n)[^\n]*In function.*pthread_create[^\n]*} $text "" text - regsub -all {(^|\n)[^\n]*the use of .pthread.*is deprecated[^\n]*} $text "" text - regsub -all {(^|\n)[^\n]*Dwarf Error:.*FORM value: 14[^\n]*} $text "" text + regsub -all {(^|\n)[^\n]*In function[^\n]*} $text "" text + regsub -all {(^|\n)[^\n]*Using.*in statically linked applications requires[^\n]*} $text "" text return $text } |