This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED] tile: avoid preprocessor redefinition warnings
- From: Chris Metcalf <cmetcalf at ezchip dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: Chris Metcalf <cmetcalf at ezchip dot com>
- Date: Wed, 21 Oct 2015 12:18:51 -0400
- Subject: [COMMITTED] tile: avoid preprocessor redefinition warnings
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=fail (sender IP is 12.216.194.146) smtp.mailfrom=ezchip.com; ezchip.com; dkim=none (message not signed) header.d=none;ezchip.com; dmarc=none action=none header.from=ezchip.com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:23
PSEUDO_END and PSEUDO_END_NOERRNO are being defined in
sysdeps/unix/sysdep.h and then redefined for tile. Add an
undef before each define to silence the warnings.
---
2015-10-21 Chris Metcalf <cmetcalf@ezchip.com>
* sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
(PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/tile/sysdep.h | 3 +++
2 files changed, 8 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/tile/sysdep.h b/sysdeps/unix/sysv/linux/tile/sysdep.h
index 6b30b2f2dde4..d1268de24bd0 100644
--- a/sysdeps/unix/sysv/linux/tile/sysdep.h
+++ b/sysdeps/unix/sysv/linux/tile/sysdep.h
@@ -53,17 +53,20 @@
# define SYSCALL_ERROR_NAME plt(__syscall_error)
#endif
+#undef PSEUDO_END
#define PSEUDO_END(name) \
0: \
j SYSCALL_ERROR_NAME; \
END (name)
+#undef PSEUDO_NOERRNO
#define PSEUDO_NOERRNO(name, syscall_name, args) \
ENTRY (name); \
DO_CALL(syscall_name, args)
#define ret_NOERRNO jrp lr
+#undef PSEUDO_END_NOERRNO
#define PSEUDO_END_NOERRNO(name) \
END (name)
--
2.1.2