Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-11-12 07:57:41 +0300
committerChristopher Faylor <me@cgf.cx>2000-11-12 07:57:41 +0300
commit49421cd9c5d29b29b4da341a75855b00fbab9b3d (patch)
treea6d69de6607d164700a085a452b813869332548d
parent6ccb6bcf3d24550eead6c969f2ac9a5f9f5105d3 (diff)
* path.h: Add __attribute__ ((regparm(x))) to commonly used functions.
* pinfo.h: Ditto. * sigproc.h: Ditto. * sync.h: Ditto.
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/path.h10
-rw-r--r--winsup/cygwin/pinfo.h2
-rw-r--r--winsup/cygwin/sigproc.h8
-rw-r--r--winsup/cygwin/sync.h2
5 files changed, 17 insertions, 12 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 225686079..407b7f816 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,10 @@
+Sat Nov 11 23:55:19 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * path.h: Add __attribute__ ((regparm(x))) to commonly used functions.
+ * pinfo.h: Ditto.
+ * sigproc.h: Ditto.
+ * sync.h: Ditto.
+
Fri Nov 10 13:48:44 2000 Bradley A. Town <townba@pobox.com>
* dcrt0.cc: New global variable `ignore_case_with_glob'.
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 70ec2d229..89eaad72c 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -70,7 +70,7 @@ class path_conv
DWORD fileattr;
void check (const char *src, unsigned opt = PC_SYM_FOLLOW,
- const suffix_info *suffixes = NULL);
+ const suffix_info *suffixes = NULL) __attribute__ ((regparm(3)));
path_conv (int, const char *src, unsigned opt = PC_SYM_FOLLOW,
const suffix_info *suffixes = NULL)
@@ -103,12 +103,12 @@ class path_conv
/* Maximum depth of symlinks (after which ELOOP is issued). */
#define MAX_LINK_DEPTH 10
-int __stdcall get_device_number (const char *name, int &unit, BOOL from_conv = FALSE);
-int __stdcall slash_unc_prefix_p (const char *path);
-int __stdcall check_null_empty_path (const char *name);
+int __stdcall get_device_number (const char *name, int &unit, BOOL from_conv = FALSE) __attribute__ ((regparm(3)));
+int __stdcall slash_unc_prefix_p (const char *path) __attribute__ ((regparm(1)));
+int __stdcall check_null_empty_path (const char *name) __attribute__ ((regparm(1)));
const char * __stdcall find_exec (const char *name, path_conv& buf, const char *winenv = "PATH=",
- int null_if_notfound = 0, const char **known_suffix = NULL);
+ int null_if_notfound = 0, const char **known_suffix = NULL) __attribute__ ((regparm(3)));
/* Common macros for checking for invalid path names */
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h
index 2ff4ba589..940e1033e 100644
--- a/winsup/cygwin/pinfo.h
+++ b/winsup/cygwin/pinfo.h
@@ -159,7 +159,7 @@ class pinfo
_pinfo *procinfo;
int destroy;
public:
- void init (pid_t n, DWORD create = 0, HANDLE h = NULL);
+ void init (pid_t n, DWORD create = 0, HANDLE h = NULL) __attribute__ ((regparm(3)));
pinfo () {}
pinfo (_pinfo *x): procinfo (x) {}
pinfo (pid_t n) {init (n);}
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index 2e31e578c..01b61a8b3 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -96,9 +96,9 @@ void __stdcall proc_terminate ();
void __stdcall sigproc_init ();
void __stdcall subproc_init ();
void __stdcall sigproc_terminate ();
-BOOL __stdcall proc_exists (_pinfo *);
-BOOL __stdcall pid_exists (pid_t);
-int __stdcall sig_send (_pinfo *, int, DWORD ebp = (DWORD) __builtin_frame_address (0));
+BOOL __stdcall proc_exists (_pinfo *) __attribute__ ((regparm(1)));
+BOOL __stdcall pid_exists (pid_t) __attribute__ ((regparm(1)));
+int __stdcall sig_send (_pinfo *, int, DWORD ebp = (DWORD) __builtin_frame_address (0)) __attribute__ ((regparm(3)));
void __stdcall signal_fixup_after_fork ();
void __stdcall signal_fixup_after_exec (bool);
@@ -107,7 +107,5 @@ extern char myself_nowait_nonmain_dummy[];
#define WAIT_SIG_EXITING (WAIT_OBJECT_0 + 1)
-#define allow_sig_dispatch(n) __allow_sig_dispatch (__FILE__, __LINE__, (n))
-
#define myself_nowait ((_pinfo *)myself_nowait_dummy)
#define myself_nowait_nonmain ((_pinfo *)myself_nowait_nonmain_dummy)
diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h
index 32a2516c5..b04fc3999 100644
--- a/winsup/cygwin/sync.h
+++ b/winsup/cygwin/sync.h
@@ -31,7 +31,7 @@ public:
/* The real constructor. */
muto(int inh, const char *name);
~muto ();
- int acquire (DWORD ms = INFINITE); /* Acquire the lock. */
+ int acquire (DWORD ms = INFINITE) __attribute__ ((regparm(1))); /* Acquire the lock. */
int release (); /* Release the lock. */
/* Return true if caller thread owns the lock. */