Commit 7727f8f2 by Jonathan Wakely Committed by Jonathan Wakely

re PR libgcc/64885 (libstdc++ all_attributes failure)

	PR libgcc/64885
	* gthr-single.h: Use __unused__ attribute instead of unused.
	* config/gthr-vxworks.h: Likewise.
	* config/i386/gthr-win32.h: Likewise.

From-SVN: r221120
parent 9d8dbe73
2015-02-12 Jonathan Wakely <jwakely@redhat.com>
PR libgcc/64885
* gthr-single.h: Use __unused__ attribute instead of unused.
* config/gthr-vxworks.h: Likewise.
* config/i386/gthr-win32.h: Likewise.
2015-02-27 Kai Tietz <ktietz@redhat.com> 2015-02-27 Kai Tietz <ktietz@redhat.com>
PR target/65038 PR target/65038
......
...@@ -36,7 +36,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -36,7 +36,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#ifdef __cplusplus #ifdef __cplusplus
#define UNUSED(x) #define UNUSED(x)
#else #else
#define UNUSED(x) x __attribute__((unused)) #define UNUSED(x) x __attribute__((__unused__))
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
......
...@@ -583,7 +583,7 @@ __gthread_once (__gthread_once_t *__once, void (*__func) (void)) ...@@ -583,7 +583,7 @@ __gthread_once (__gthread_once_t *__once, void (*__func) (void))
C++ EH. Mingw uses a thread-support DLL to work-around this problem. */ C++ EH. Mingw uses a thread-support DLL to work-around this problem. */
static inline int static inline int
__gthread_key_create (__gthread_key_t *__key, __gthread_key_create (__gthread_key_t *__key,
void (*__dtor) (void *) __attribute__((unused))) void (*__dtor) (void *) __attribute__((__unused__)))
{ {
int __status = 0; int __status = 0;
DWORD __tls_index = TlsAlloc (); DWORD __tls_index = TlsAlloc ();
......
...@@ -38,7 +38,7 @@ typedef int __gthread_recursive_mutex_t; ...@@ -38,7 +38,7 @@ typedef int __gthread_recursive_mutex_t;
#define __GTHREAD_MUTEX_INIT_FUNCTION(mx) #define __GTHREAD_MUTEX_INIT_FUNCTION(mx)
#define __GTHREAD_RECURSIVE_MUTEX_INIT 0 #define __GTHREAD_RECURSIVE_MUTEX_INIT 0
#define UNUSED __attribute__((unused)) #define UNUSED __attribute__((__unused__))
#ifdef _LIBOBJC #ifdef _LIBOBJC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment