This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2.19] longlong.h add prototype for __udiv_w_sdiv


Hi,

on S/390 31 bit I'm seeing tons of build warnings complaining about
implicit declaration of __udiv_w_sdiv.  Fixed with the attached patch.

If ok I'll apply the patch also to the copies in Binutils/GDB and GCC
repos.

Ok?

Bye,

-Andreas-

2014-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* stdlib/longlong.h: Change type of __r to UWtype.  Add
          prototype for __udiv_w_sdiv.

diff --git a/stdlib/longlong.h b/stdlib/longlong.h
index 10d76cf..5267d5a 100644
--- a/stdlib/longlong.h
+++ b/stdlib/longlong.h
@@ -1671,10 +1671,11 @@ extern UHItype __stormy16_count_leading_zeros (UHItype);
 #if !defined (udiv_qrnnd) && defined (sdiv_qrnnd)
 #define udiv_qrnnd(q, r, nh, nl, d) \
   do {									\
-    USItype __r;							\
+    UWtype __r;								\
     (q) = __udiv_w_sdiv (&__r, nh, nl, d);				\
     (r) = __r;								\
   } while (0)
+extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);
 #endif
 
 /* If udiv_qrnnd was not defined for this processor, use __udiv_qrnnd_c.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]