aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-03-02 18:02:18 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2015-03-02 18:02:18 +0000
commit7727f8f2c0e1a68851b646ad124d46a4dfb3be5d (patch)
tree0941b9e46d636e959716b1a1b80466574e93f5f1 /libgcc/config
parent9d8dbe732a0df0604dd1a2db1e4495e3eba686a8 (diff)
downloadgcc-7727f8f2c0e1a68851b646ad124d46a4dfb3be5d.zip
gcc-7727f8f2c0e1a68851b646ad124d46a4dfb3be5d.tar.gz
gcc-7727f8f2c0e1a68851b646ad124d46a4dfb3be5d.tar.bz2
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
Diffstat (limited to 'libgcc/config')
-rw-r--r--libgcc/config/gthr-vxworks.h2
-rw-r--r--libgcc/config/i386/gthr-win32.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libgcc/config/gthr-vxworks.h b/libgcc/config/gthr-vxworks.h
index 2f64b01..c90879a 100644
--- a/libgcc/config/gthr-vxworks.h
+++ b/libgcc/config/gthr-vxworks.h
@@ -36,7 +36,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#ifdef __cplusplus
#define UNUSED(x)
#else
-#define UNUSED(x) x __attribute__((unused))
+#define UNUSED(x) x __attribute__((__unused__))
#endif
#ifdef __cplusplus
diff --git a/libgcc/config/i386/gthr-win32.h b/libgcc/config/i386/gthr-win32.h
index 1c9742a..3f3e308 100644
--- a/libgcc/config/i386/gthr-win32.h
+++ b/libgcc/config/i386/gthr-win32.h
@@ -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. */
static inline int
__gthread_key_create (__gthread_key_t *__key,
- void (*__dtor) (void *) __attribute__((unused)))
+ void (*__dtor) (void *) __attribute__((__unused__)))
{
int __status = 0;
DWORD __tls_index = TlsAlloc ();