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.
This commit is contained in:
@ -11,11 +11,10 @@ details. */
|
||||
|
||||
#ifndef _MISCFUNCS_H
|
||||
#define _MISCFUNCS_H
|
||||
int winprio_to_nice (DWORD) __attribute__ ((regparm (1)));
|
||||
DWORD nice_to_winprio (int &) __attribute__ ((regparm (1)));
|
||||
int __reg1 winprio_to_nice (DWORD);
|
||||
DWORD __reg1 nice_to_winprio (int &);
|
||||
|
||||
bool __stdcall create_pipe (PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD)
|
||||
__attribute__ ((regparm (3)));
|
||||
bool __reg3 create_pipe (PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD);
|
||||
|
||||
BOOL WINAPI CreatePipeOverlapped (PHANDLE read_handle, PHANDLE write_handle,
|
||||
LPSECURITY_ATTRIBUTES sa);
|
||||
@ -27,7 +26,7 @@ BOOL WINAPI WritePipeOverlapped (HANDLE h, LPCVOID buf, DWORD len,
|
||||
extern "C" void yield ();
|
||||
|
||||
#define import_address(x) __import_address ((void *)(x))
|
||||
void * __stdcall __attribute__ ((regparm (1))) __import_address (void *);
|
||||
void * __reg1 __import_address (void *);
|
||||
|
||||
void backslashify (const char *, char *, bool);
|
||||
void slashify (const char *, char *, bool);
|
||||
@ -42,9 +41,9 @@ transform_chars (PUNICODE_STRING upath, USHORT start_idx)
|
||||
}
|
||||
|
||||
/* Memory checking */
|
||||
int __stdcall check_invalid_virtual_addr (const void *s, unsigned sz) __attribute__ ((regparm(2)));
|
||||
int __reg2 check_invalid_virtual_addr (const void *s, unsigned sz);
|
||||
|
||||
ssize_t check_iovec (const struct iovec *, int, bool) __attribute__ ((regparm(3)));
|
||||
ssize_t __reg3 check_iovec (const struct iovec *, int, bool);
|
||||
#define check_iovec_for_read(a, b) check_iovec ((a), (b), false)
|
||||
#define check_iovec_for_write(a, b) check_iovec ((a), (b), true)
|
||||
|
||||
|
Reference in New Issue
Block a user