This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix MIPS _ABIO64 -Werror=undef build [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Mon, 16 Feb 2015 22:25:50 +0000
- Subject: Fix MIPS _ABIO64 -Werror=undef build [committed]
- Authentication-results: sourceware.org; auth=none
I see an error
../sysdeps/mips/memcpy.S:209:68: error: "_ABIO64" is not defined [-Werror=undef]
#if defined(_MIPS_SIM) && ((_MIPS_SIM == _ABIO32) || (_MIPS_SIM == _ABIO64))
^
cc1: some warnings being treated as errors
in MIPS builds. This patch arranges for _ABIO64 to be defined with
the same value as GCC uses when building for O64 (the ABI itself isn't
supported by glibc, but defining the macro seems the simplest way of
avoiding the error in code that may be shared with other C libraries).
Committed.
2015-02-16 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
diff --git a/sysdeps/mips/sgidefs.h b/sysdeps/mips/sgidefs.h
index 1a9f7b0..9fb3b37 100644
--- a/sysdeps/mips/sgidefs.h
+++ b/sysdeps/mips/sgidefs.h
@@ -69,4 +69,8 @@
#endif
#define _MIPS_SIM_ABI64 _ABI64
+#ifndef _ABIO64
+# define _ABIO64 4
+#endif
+
#endif /* sgidefs.h */
--
Joseph S. Myers
joseph@codesourcery.com