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

login
register
mail settings
Submitter Richard Henderson
Date Jan. 8, 2014, 6:13 p.m.
Message ID <1389204801-9832-6-git-send-email-rth@redhat.com>
Download mbox | patch
Permalink /patch/308391/
State New
Headers show

Comments

Richard Henderson - Jan. 8, 2014, 6:13 p.m.
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(+)
Joseph S. Myers - Jan. 8, 2014, 8:35 p.m.
soft-fp patches should go first to glibc.

Patch

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