From c7e2187a60c13d1263678e22361648bb5d663e14 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 16 Aug 2002 19:41:39 +0000 Subject: * Makefile.in: Add support for new malloc.o and renamed malloc_wrapper.o. Use -fomit-frame-pointer for malloc.o compilation. * malloc_wrapper.cc: New file. Rename from malloc.cc. Add support for more malloc functions. Eliminate export_* calls. Just use straight malloc names. Remove unused argument from malloc lock functions. * cygwin.din: Just export straight malloc names. Add malloc_stats, malloc_trim, malloc_usable_size, mallopt, memalign, valloc. * dcrt0.cc (__cygwin_user): Eliminate export_* malloc entries. * fork.cc (fork_parent): Remove unused argument from malloc_lock argument. * malloc.cc: New file. Doug Lea's malloc v2.7.1. * cygmalloc.h: New file. * include/cygwin/version.h: Bump API_MINOR. * sync.h (muto::acquire): Use appropriate number for regparm attribute. (muto::reset): Ditto. (muto::release): Ditto. --- winsup/cygwin/sync.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/sync.h') diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h index d50ae1763..9cd50c3ac 100644 --- a/winsup/cygwin/sync.h +++ b/winsup/cygwin/sync.h @@ -29,14 +29,14 @@ public: #if 0 /* FIXME: See comment in sync.cc */ ~muto () #endif - int acquire (DWORD ms = INFINITE) __attribute__ ((regparm (1))); /* Acquire the lock. */ - int release (); /* Release the lock. */ + int acquire (DWORD ms = INFINITE) __attribute__ ((regparm (2))); /* Acquire the lock. */ + int release () __attribute__ ((regparm (1))); /* Release the lock. */ /* Return true if caller thread owns the lock. */ int ismine () {return tid == GetCurrentThreadId ();} DWORD owner () {return tid;} int unstable () {return !tid && (sync || waiters >= 0);} - void reset (); + void reset () __attribute__ ((regparm (1))); }; extern muto muto_start; -- cgit v1.2.3