aboutsummaryrefslogtreecommitdiff
path: root/libmudflap
AgeCommit message (Collapse)AuthorFilesLines
2004-10-28fail35-,pass53-,pass54-frag.c: New tests.Frank Ch. Eigler5-1/+104
2004-10-28 Frank Ch. Eigler <fche@redhat.com> * testsuite/libmudflap.c/fail35-,pass53-,pass54-frag.c: New tests. * testsuite/libmudflap.c/pass35-frag.c: Correct embedded warning message. From-SVN: r89783
2004-10-25re PR other/18138 (libgcc_s.so.1 not found by 64-bit testsuite)Eric Botcazou2-1/+6
gcc/testsuite: PR other/18138 * lib/g++.exp: Accept more than one multilib libgcc. * lib/gcc-dg.exp: Likewise. * lib/objc.exp: Likewise. * lib/treelang.exp: Likewise. * lib/gfortran.exp: Likewise. libffi: PR other/18138 * testsuite/lib/libffi-dg.exp: Accept more than one multilib libgcc. libjava: PR other/18138 * testsuite/lib/libjava.exp: Accept more than one multilib libgcc. libmudflap!: PR other/18138 * testsuite/lib/libmudflap.exp: Accept more than one multilib libgcc. libstdc++-v3: PR other/18138 * testsuite/lib/libstdc++.exp: Accept more than one multilib libgcc. From-SVN: r89528
2004-10-13configure.ac: Check for more headers, functions.Frank Ch. Eigler11-39/+492
2004-10-12 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Check for more headers, functions. * mf-hooks2.c (mkbuffer, unmkbuffer): New helper functions for tracking overridden FILE buffers. (fopen, setvbuf): New/revised hook functions for buffer overriding. (setbuf,setlinebuf,fdopen,freopen,fopen64,freopen64,fclose): Ditto. (fflush): Accept given NULL stream (means "all streams"). * mf-runtime.h.in: * mf-runtime.c (__mfu_check): Accept accesses that span adjacent HEAP/GUESS objects. (LOOKUP_CACHE_SIZE_MAX): Raise to 64K entries tentatively. (__mf_adapt_cache): Use them all. * testsuite/libmudflap.c/pass35-frag.c: Update warning message. * testsuite/libmudflap.c++/ctors.exp: Ditto. * testsuite/libmudflap.c/{pass51,pass52}-frag.c: New tests. * configure, config.h.in: Regenerated. From-SVN: r88996
2004-10-05* thanks kcookFrank Ch. Eigler3-4/+8
2004-10-05 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Checking for sys/socket.h once is enough. * configure: Regenerated. From-SVN: r88559
2004-10-04configure.ac: Look for more headers & functions.Frank Ch. Eigler8-25/+491
2004-10-04 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Look for more headers & functions. * mf-hooks2.c (getmntent, inet_ntoa, getproto*): New wrapper functions. * mf-runtime.h.in: Add new "#pragma redefine_extname"s for them. * mf-runtime.c (options): Clean up integer signedness warnings. (main): Add a declaration to fix a warning. * mf-hooks3.c (pthread_exit): Add not-reached exit() to wrapper. * configure, config.h.in: Regenerated. From-SVN: r88517
2004-10-03* fixing typos in accidental checkinFrank Ch. Eigler1-2/+2
From-SVN: r88463
2004-10-02tree-mudflap.c (mf_build_check_statement_for): Reorganize to take check-base ↵Frank Ch. Eigler4-0/+81
and -limit arguments. 2004-10-02 Frank Ch. Eigler <fche@redhat.com> * tree-mudflap.c (mf_build_check_statement_for): Reorganize to take check-base and -limit arguments. (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit check ranges for ARRAY_REF and COMPONENT_REF. (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary instrumentation. 2004-10-02 Frank Ch. Eigler <fche@redhat.com> * testsuite/libmudflap.c/pass50-frag.c, fail33-frag.c, fail34-frag.c: New tests for proper base/limit checking for aggregates. From-SVN: r88432
2004-09-15attribs.c, [...]: Use %<, %> and %q for quoting in diagnostics going through ↵Joseph Myers2-1/+5
pretty-print.c. gcc: * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c, except.c, fold-const.c, function.c, langhooks.c, params.c, reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c, tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q for quoting in diagnostics going through pretty-print.c. Use '' for quoting in other diagnostic text. * langhooks.c: Include intl.h. Mark text locating diagnostics for translation. * Makefile.in (langhooks.o): Update dependencies. * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic formats. gcc/testsuite: * g++.dg/ext/member-attr.C, g++.dg/warn/deprecated.C, gcc.dg/deprecated.c, gcc.dg/noreturn-1.c, gcc.dg/noreturn-4.c: Update expected messages. libmudflap: * testsuite/libmudflap.c/pass35-frag.c: Update expected message. From-SVN: r87563
2004-09-07configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions.Frank Ch. Eigler10-46/+696
2004-09-07 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions. * mf-hooks2.c (strerror): Unregister previous string returned by previous strerror. (getlogin,cuserid,getpwnam,getpwuid,getgrnam,getgrgid): New wrappers. (getservent,getservbyname,getservbyport,gai_strerror): Ditto. * mf-runtime.h.in: Add redefine_extname pragmas for them all. * mf-runtime.c (__mf_describe_object): Clarify object life status. * testsuite/libmudflap.c/pass48-frag.c, pass49-frag.c, fail32-frag.c: New tests. * configure, config.h.in: Regenerated. From-SVN: r87160
2004-08-03mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin.Dale Johannesen2-1/+5
2004-08-03 Dale Johannesen <dalej@apple.com> * mf-runtime.c: Conditionalize POSIX_SOURCE for Darwin. From-SVN: r85478
2004-08-03mf-runtime.c (compare_uintptr_t): Remove function.Frank Ch. Eigler2-23/+16
2004-08-03 Frank Ch. Eigler <fche@redhat.com> * mf-runtime.c (compare_uintptr_t): Remove function. Inline simplified contents in all former callers. From-SVN: r85475
2004-07-27mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in the statically ↵Ulrich Weigand2-0/+11
linked case. 2004-07-27 Ulrich Weigand <weigand@informatik.uni-erlangen.de> * mf-runtime.c (__mf_fini): Set mudflap_mode to mode_nop in the statically linked case. From-SVN: r85229
2004-07-27splay-tree.[ch]: Remove.Frank Ch. Eigler7-698/+592
2004-07-27 Frank Ch. Eigler <fche@redhat.com> * splay-tree.[ch]: Remove. Merge contents into ... * mf-runtime.c: ... here, renaming symbols and making all functions static. Remove unused min/max functions. * Makefile.am: Forget about splay-tree.[ch]. * Makefile.in, testsuite/Makefile.in: Regenerated. From-SVN: r85224
2004-07-21* whitespace tweakFrank Ch. Eigler1-2/+1
From-SVN: r85018
2004-07-21mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling.Frank Ch. Eigler3-5/+24
2004-07-21 Frank Ch. Eigler <fche@redhat.com> * mf-runtime.c (__mfu_check): Remove mistaken mode-nop handling. (__mfu_usage): Include (C) 2004. * mf-hooks3.c (__mf_find_threadinfo): Don't call tracing functions here. Include a comment explaining why. From-SVN: r85014
2004-07-20mf-impl.h (__mf_options): Add ignore_reads and timestamps fields.Frank Ch. Eigler4-10/+29
2004-07-20 Frank Ch. Eigler <fche@redhat.com> * mf-impl.h (__mf_options): Add ignore_reads and timestamps fields. * mf-runtime.c (options): Give them a name. (__mf_set_default_options): Set them. (__mf_insert_new_object, __mfu_unregister): Optionalize timestamps. (__mf_violation): Warning cleanup. * mf-impl.h (MF_VALIDATE_EXTENT): Support ignore_reads option. * splay-tree.c (splay_tree_delete_helper): Remove obsolete decl. From-SVN: r84971
2004-07-15* Fix for g++/15861Frank Ch. Eigler2-2/+12
2004-07-15 Frank Ch. Eigler <fche@redhat.com> g++/15861 * mf-runtime.c (__mf_init): Make it non-static. Tolerate repeated invocation. From-SVN: r84761
2004-07-09Test case for g++/15861Frank Ch. Eigler5-2/+73
2004-07-09 Frank Ch. Eigler <fche@redhat.com> Test case for g++/15861 * testsuite/libmudflap.c++/ctors-[12].cxx: New test case halves. * testsuite/libmudflap.c++/ctors.exp: Driver. * testsuite/libmudflap.c++/c++frags.exp: Elide redundant default. Look only for *frag* test cases. From-SVN: r84392
2004-07-08ANSI C conversion, libmudflap specialization, recursion limiting.Frank Ch. Eigler4-287/+388
2004-07-08 Frank Ch. Eigler <fche@redhat.com> ANSI C conversion, libmudflap specialization, recursion limiting. * splay-tree.h (splay_tree_{de,}allocate_fn): Remove allocation_data argument and indirection function pointers, update callers. (splay_tree_s): Add statistics and recursion control fields num_keys, max_depth, depth, rebalance_p. * splay-tree.c (splay_tree_splay_helper): Track recursion depth. Back out of search if it exceeds limit. (splay_tree_splay): Manage recursion limiting with rebalancing as needed. (splay_tree_new): More initialization. (splay_tree_rebalance): New function. (splay_tree_foreach): Rewrite using nonrecursive logic. (splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate): Remove. Point indirect calls to mf-runtime.c's routines. (splay_tree_compare_ints, splay_tree_compare_pointers): Remove unused functions. (splay_tree_delete, splay_tree_delete_helper): Ditto. * testsuite/heap-scalestress.c: New test based on one from Eyal Lebedinsky <eyal@eyal.emu.id.au>: From-SVN: r84303
2004-07-05libtool-version: New.Matthias Klose6-65/+51
2004-07-05 Matthias Klose <doko@debian.org> * libtool-version: New. * Makefile.am (libmudflap_la_LDFLAGS, libmudflapth_la_LDFLAGS): Use -version-info for soname. * Makefile.in: Regenerate. * configure.ac: Remove libtool_VERSION macro * configure: Regenerate From-SVN: r84129
2004-07-05tree-mudflap.c: Include cgraph.h.Zack Weinberg2-6/+18
gcc: * tree-mudflap.c: Include cgraph.h. (mf_init_extern_trees): Rename to mudflap_init. Export. Rewrite to create synthetic declarations instead of looking up declarations from mf-runtime.h. (mf_make_builtin, mf_make_cache_struct_type): New functions. (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl): Correct commentary. (execute_mudflap_function_decls, mudflap_register_call): Don't call mf_init_extern_trees. (mudflap_finish_file): Use cgraph_build_static_cdtor. * tree-mudflap.h: Update prototypes. * c-mudflap.c: Delete file. * c-common.c: Include tree-mudflap.h. (c_common_nodes_and_builtins): Call mudflap_init if appropriate. * Makefile.in: Remove all references to c-mudflap.o. Update dependencies. gcc/cp: * cp-mudflap.c: Delete file. * Makefile.in: Remove all references to cp-mudflap.o. libmudflap: * mf-runtime.h.in: Wrap declarations of struct __mf_cache, __mf_lookup_cache, __mf_lc_mask, or __mf_lc_shift in #ifndef _MUDFLAP. From-SVN: r84126
2004-06-29[multiple changes]Frank Ch. Eigler8-26/+674
2004-06-29 Frank Ch. Eigler <fche@redhat.com> Splay tree implementation fork. * splay-tree.c, splay-tree.h: Copied & modified from libiberty. Use hard-coded comparison function for uintptr_t. Remove key/value deallocation logic. Cache last splayed key for consecutive lookups. * Makefile.am, Makefile.in: Use them, don't link to them. * mf-runtime.c (__mf_object_tree): Adapt to simpler splay_tree_new. (__mf_find_objects2): Flip successor/predecessor search sequence. * ansidecl.h, libiberty.h: Removed dummy files. 2004-06-29 Nick Clifton <nickc@redhat.com> From-SVN: r83879
2004-06-29configure.ac (AC_CHECK_HEADERS): Add dirent.h configure: Regenerate.Nick Clifton4-34/+73
configure.ac (AC_CHECK_HEADERS): Add dirent.h configure: Regenerate. mf-hooks2.c: Surround uses of dirent.h with #ifdef HAVE_DIRENT_H. Remove spurious inclusion of <strings.h>. From-SVN: r83850
2004-06-29(pthread_join): Only apply the weak pragma if the function actually exists.Nick Clifton1-0/+4
From-SVN: r83847
2004-06-25* quick build fixFrank Ch. Eigler4-1/+11
2004-06-25 Frank Ch. Eigler <fche@redhat.com> * ansidecl.h, libiberty.h: New dummy files for building splay-tree. * config.h.in: Regenerated. From-SVN: r83661
2004-06-24Adopt splay trees for object database.Frank Ch. Eigler11-1135/+892
2004-06-24 Frank Ch. Eigler <fche@redhat.com> Adopt splay trees for object database. * Makefile.am: Copy splay-tree.* from libiberty. * Makefile.in, testsuite/Makefile.in: Regenerated. * mf-runtime.h.in (__mf_unregister): Add third parameter (type). * mf-hooks[123].c (*): Add new third parameter to mf_unregister. * mf-impl.h (BEGIN_PROTECT): Remove some trace text. * mf-runtime.c: Rewrite code dealing with object database to use libiberty splay trees. Remove tree liveness aging option. * testsuite/libmudflap.c/fail18-frag.c: Add volatile flag. From-SVN: r83611
2004-06-18Fix incorrect year for some ChangeLog entries.R. Kelley Cook1-2/+2
From-SVN: r83335
2004-06-15configure.ac: New name of configure.in.Paolo Bonzini7-2010/+1588
libmudflap/ChangeLog: 2005-06-15 Paolo Bonzini <bonzini@gnu.org> * configure.ac: New name of configure.in. Update AC_INIT, AC_CONFIG_SRCDIR, AC_CONFIG_HEADERS, AC_CONFIG_FILES, AC_OUTPUT, AM_INIT_AUTOMAKE to the preferred style for Autoconf 2.5x and Automake 1.7 or later. * configure.in: Remove. * configure: Regenerate. * Makefile.am: Remove useless multilib rules. * Makefile.in: Regenerate. libstdc++-v3/ChangeLog: 2005-06-15 Paolo Bonzini <bonzini@gnu.org> * acinclude.m4: Remove useless multilib configury. * Makefile.am: Remove useless multilib rules. * aclocal.m4: Regenerate. * Makefile.in: Regenerate. * configure.ac: Use AM_ENABLE_MULTILIB. * configure: Regenerate. zlib/ChangeLog.gcj: 2005-06-15 Paolo Bonzini <bonzini@gnu.org> * Makefile.am: Remove useless multilib rules. * configure.ac: Rewrite multilib support to use features of recent automakes. * aclocal.m4: Regenerate with Automake 1.8.5. * Makefile.in: Regenerate with Automake 1.8.5. * configure: Regenerate. libffi/ChangeLog: 2005-06-15 Paolo Bonzini <bonzini@gnu.org> * Makefile.am: Remove useless multilib rules. * Makefile.in: Regenerate. * aclocal.m4: Regenerate with automake 1.8.5. * configure.ac: Remove useless multilib configury. * configure: Regenerate. From-SVN: r83184
2004-06-15Added .cvsignore entry for autom4te.cache to boehm-gc, libffi andPaolo Bonzini2-0/+5
libmudflap. From-SVN: r83169
2004-06-10re PR libmudflap/13505 ([tree-ssa] libmudflap mf-hooks2.c build failure on ↵Stephen Crowley2-2/+7
cygwin) 2004-06-10 Stephen Crowley <stephen.crowley@sbcglobal.net> PR libmudflap/13505 * mf-hooks2.c (semctl): Add cygwin porting hack. From-SVN: r82923
2004-06-09ctype support.Frank Ch. Eigler8-3/+213
2004-06-09 Frank Ch. Eigler <fche@redhat.com> ctype support. * configure.in: Look for ctype header and glibc implementation. * mf-hooks2.c (__ctype_{b,toupper,tolower}_loc): Sample ctype array hooks for glibc 2.3. * mf-runtime.h.in: Wrap them. * mf-runtime.c (__mf_init): Leave marker regarding other ctype implementations. * testsuite/libmudflap.c/pass47-frag.c: New test. * configure, config.h.in: Regenerated. From-SVN: r82848
2004-06-04Portability improvements, e.g., libmudflap/15293.Frank Ch. Eigler20-2475/+2408
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. From-SVN: r82632
2004-06-04configure.in (LIBMUDFLAPTH): Fix thinko.Per Bothner6-7/+55
* configure.in (LIBMUDFLAPTH): Fix thinko. * configure.in: Check for more headers. * mf-hooks2.c: Conditionalize on HAVE_SYS_SOCKET_H etc. * mf-runtime.c: In two places conditionalize on SIUSR1 rather than HAVE_SIGNAL as mingw has signal.h but not SIUSR1. From-SVN: r82627
2004-06-01config.h.in: Regenerated.Andreas Jaeger3-174/+336
* config.h.in: Regenerated. * testsuite/Makefile.in: Regenerated. From-SVN: r82528
2004-06-01configure.in: Handle multilibs, support --enable-version-specific-runtime-libs.Andreas Jaeger7-3034/+7365
* configure.in: Handle multilibs, support --enable-version-specific-runtime-libs. * Makefile.am (lib_LTLIBRARIES): Rename to ... (toolexeclib_LTLIBRARIES): this for multilib support. * Makefile.in: Regenerated. * configure: Regenerated. * aclocal.m4: Regenerated. * testsuite/lib/libmudflap.exp (libmudflap-init): Handle multilibs, using multilib directory instead of hardcoded path. Set LD_RUN_PATH. From-SVN: r82527
2004-05-21Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS.Frank Ch. Eigler3-0/+7
2004-05-21 Frank Ch. Eigler <fche@redhat.com> * Makefile.am (AM_MAKEFLAGS): Pass RUNTESTFLAGS. * Makefile.in: Ditto. From-SVN: r82107
2004-05-18acinclude.m4 (lt_cv_deplibs_check_method): Use pass_all on sh*.Kaz Kojima4-3/+8
* acinclude.m4 (lt_cv_deplibs_check_method): Use pass_all on sh*. * aclocal.m4, configure: Rebuilt. From-SVN: r81981
2004-05-17libmudflap.exp (libmudflap-init): For C++ test cases only...Frank Ch. Eigler6-12/+43
2004-05-17 Frank Ch. Eigler <fche@redhat.com> * lib/libmudflap.exp (libmudflap-init): For C++ test cases only, import some build settings from libstdc++-v3 testsuite_flags. * .../cfrags.exp, .../c++frags.exp, .../cthfrags.exp: Corresponding changes to pass test language. * mf-runtime.c (__mfu_check): Poison the cache with antidote for quicker mode-nop handling. From-SVN: r81944
2004-05-13Merge tree-ssa-20020619-branch into mainline.Diego Novillo103-0/+16403
From-SVN: r81764