[PATCH, AArch64 5/6] soft-fp: Define UDWtype for longlong.h

Richard Henderson rth@redhat.com
Wed Jan 8 18:14:00 GMT 2014


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



More information about the Gcc-patches mailing list