This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, AArch64 5/6] soft-fp: Define UDWtype for longlong.h
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Marcus dot Shawcroft at arm dot com, Yufeng dot Zhang at arm dot com
- Date: Wed, 8 Jan 2014 10:13:20 -0800
- Subject: [PATCH, AArch64 5/6] soft-fp: Define UDWtype for longlong.h
- Authentication-results: sourceware.org; auth=none
- References: <1389204801-9832-1-git-send-email-rth at redhat dot com>
The documentation for longlong.h says this type must be defined.
We've gotten away with this because so far longlong.h hasn't
actually used the type.
libgcc/
* soft-fp/soft-fp.h: (UDWtype): New define.
---
libgcc/soft-fp/soft-fp.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libgcc/soft-fp/soft-fp.h b/libgcc/soft-fp/soft-fp.h
index b54b1ed..8f80ea6 100644
--- a/libgcc/soft-fp/soft-fp.h
+++ b/libgcc/soft-fp/soft-fp.h
@@ -248,6 +248,12 @@ typedef unsigned int UHWtype __attribute__ ((mode (HI)));
typedef USItype UHWtype;
#endif
+#if _FP_W_TYPE_SIZE == 32
+# define UDWtype UDItype
+#elif _FP_W_TYPE_SIZE == 64
+# define UDWtype UTItype
+#endif
+
#ifndef CMPtype
# define CMPtype int
#endif
--
1.8.4.2