diff options
author | Christopher Faylor <me@cgf.cx> | 2013-01-21 04:34:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-01-21 04:34:52 +0000 |
commit | 6e75c72b89496ef702133a9b093f5bdadb5ca0e7 (patch) | |
tree | 7b7ed1227affa28e3e0a3e4c83387eeab9819c66 /winsup/cygwin/sigproc.h | |
parent | d89e61f354d50020fd4cb1fbfb37bf0864ad5ec1 (diff) | |
download | cygnal-6e75c72b89496ef702133a9b093f5bdadb5ca0e7.tar.gz cygnal-6e75c72b89496ef702133a9b093f5bdadb5ca0e7.tar.bz2 cygnal-6e75c72b89496ef702133a9b093f5bdadb5ca0e7.zip |
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/sigproc.h')
-rw-r--r-- | winsup/cygwin/sigproc.h | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h index 8fd17c99d..df10ed30c 100644 --- a/winsup/cygwin/sigproc.h +++ b/winsup/cygwin/sigproc.h @@ -1,6 +1,6 @@ /* sigproc.h - Copyright 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + Copyright 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010, 2011, 2012, 2013 Red Hat, Inc. This file is part of Cygwin. @@ -55,37 +55,34 @@ struct sigpacket HANDLE thread_handle; struct sigpacket *next; }; - int __stdcall process () __attribute__ ((regparm (1))); - int setup_handler (void *, struct sigaction&, _cygtls *) - __attribute__ ((regparm (3))); + int __reg1 process (); + int __reg3 setup_handler (void *, struct sigaction&, _cygtls *); }; -void __stdcall sig_dispatch_pending (bool fast = false) - __attribute__ ((regparm (1))); -void set_signal_mask (sigset_t&, sigset_t) __attribute__ ((regparm (2))); -int __stdcall handle_sigprocmask (int sig, const sigset_t *set, - sigset_t *oldset, sigset_t& opmask) - __attribute__ ((regparm (3))); +void __reg1 sig_dispatch_pending (bool fast = false); +void __reg2 set_signal_mask (sigset_t&, sigset_t); +int __reg3 handle_sigprocmask (int sig, const sigset_t *set, + sigset_t *oldset, sigset_t& opmask); -void __stdcall sig_clear (int) __attribute__ ((regparm (1))); -void __stdcall sig_set_pending (int) __attribute__ ((regparm (1))); +void __reg1 sig_clear (int); +void __reg1 sig_set_pending (int); int __stdcall handle_sigsuspend (sigset_t); -int __stdcall proc_subproc (DWORD, DWORD) __attribute__ ((regparm (2))); +int __reg2 proc_subproc (DWORD, DWORD); class _pinfo; void __stdcall proc_terminate (); void __stdcall sigproc_init (); -bool __stdcall pid_exists (pid_t) __attribute__ ((regparm(1))); -int __stdcall sig_send (_pinfo *, siginfo_t&, class _cygtls * = NULL) __attribute__ ((regparm (3))); -int __stdcall sig_send (_pinfo *, int, class _cygtls * = NULL) __attribute__ ((regparm (3))); +bool __reg1 pid_exists (pid_t); +int __reg3 sig_send (_pinfo *, siginfo_t&, class _cygtls * = NULL); +int __reg3 sig_send (_pinfo *, int, class _cygtls * = NULL); void __stdcall signal_fixup_after_exec (); void __stdcall sigalloc (); int kill_pgrp (pid_t, siginfo_t&); int killsys (pid_t, int); -void exit_thread (DWORD) __attribute__ ((regparm (1), noreturn)); -void setup_signal_exit (int) __attribute__ ((regparm (1))); +void __reg1 exit_thread (DWORD) __attribute__ ((noreturn)); +void __reg1 setup_signal_exit (int); extern "C" void sigdelayed (); |