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>2013-01-21 08:34:52 +0400
committerChristopher Faylor <me@cgf.cx>2013-01-21 08:34:52 +0400
commit6e75c72b89496ef702133a9b093f5bdadb5ca0e7 (patch)
tree7b7ed1227affa28e3e0a3e4c83387eeab9819c66 /winsup/cygwin/pinfo.h
parentd89e61f354d50020fd4cb1fbfb37bf0864ad5ec1 (diff)
Throughout, change __attribute__ ((regparm (N))) to just __regN. Throughout,
(mainly in fhandler*) start fixing gcc 4.7.2 mismatch between regparm definitions and declarations. * gendef: Define some functions to take @ declaration to accommodate _regN defines which use __stdcall. * gentls_offsets: Define __regN macros as empty. * autoload.cc (wsock_init): Remove unneeded regparm attribute. * winsup.h (__reg1): Define. (__reg2): Define. (__reg3): Define. * advapi32.cc (DuplicateTokenEx): Coerce some initializers to avoid warnings from gcc 4.7.2. * exceptions.cc (status_info): Declare struct to use NTSTATUS. (cygwin_exception::dump_exception): Coerce e->ExceptionCode to NTSTATUS. * fhandler_clipboard.cc (cygnativeformat): Redefine as UINT to avoid gcc 4.7.2 warnings. (fhandler_dev_clipboard::read): Ditto.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r--winsup/cygwin/pinfo.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h
index c8eedea2f..f3f85c194 100644
--- a/winsup/cygwin/pinfo.h
+++ b/winsup/cygwin/pinfo.h
@@ -1,7 +1,7 @@
/* pinfo.h: process table info
Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
- 2011, 2012 Red Hat, Inc.
+ 2011, 2012, 2013 Red Hat, Inc.
This file is part of Cygwin.
@@ -112,8 +112,8 @@ public:
char *cmdline (size_t &);
bool set_ctty (class fhandler_termios *, int);
bool alert_parent (char);
- int __stdcall kill (siginfo_t&) __attribute__ ((regparm (2)));
- bool __stdcall exists () __attribute__ ((regparm (1)));
+ int __reg2 kill (siginfo_t&);
+ bool __reg1 exists ();
const char *_ctty (char *);
/* signals */
@@ -151,7 +151,7 @@ public:
bool waiter_ready;
class cygthread *wait_thread;
- void init (pid_t, DWORD, HANDLE) __attribute__ ((regparm(3)));
+ void __reg3 init (pid_t, DWORD, HANDLE);
pinfo (_pinfo *x = NULL): pinfo_minimal (), destroy (false), procinfo (x),
waiter_ready (false), wait_thread (NULL) {}
pinfo (pid_t n, DWORD flag = 0): pinfo_minimal (), destroy (false),
@@ -161,18 +161,18 @@ public:
init (n, flag, NULL);
}
pinfo (HANDLE, pinfo_minimal&, pid_t);
- void thisproc (HANDLE) __attribute__ ((regparm (2)));
+ void __reg2 thisproc (HANDLE);
inline void _pinfo_release ();
void release ();
- bool wait () __attribute__ ((regparm (1)));
+ bool __reg1 wait ();
~pinfo ()
{
if (destroy && procinfo)
release ();
}
- void exit (DWORD n) __attribute__ ((noreturn, regparm(2)));
- void maybe_set_exit_code_from_windows () __attribute__ ((regparm(1)));
- void set_exit_code (DWORD n) __attribute__ ((regparm(2)));
+ void __reg2 exit (DWORD n) __attribute__ ((noreturn, ));
+ void __reg1 maybe_set_exit_code_from_windows ();
+ void __reg2 set_exit_code (DWORD n);
_pinfo *operator -> () const {return procinfo;}
int operator == (pinfo *x) const {return x->procinfo == procinfo;}
int operator == (pinfo &x) const {return x.procinfo == procinfo;}