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

Submitted by Richard Henderson on Jan. 8, 2014, 6:13 p.m.

Details

Message ID 1389204801-9832-6-git-send-email-rth@redhat.com
State New
Headers show

Commit Message

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(+)

Comments

Joseph S. Myers Jan. 8, 2014, 8:35 p.m.
soft-fp patches should go first to glibc.

Patch hide | download patch | download mbox

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