diff mbox

longlong.h: Add prototype for udiv_w_sdiv

Message ID 20140129101950.GA20256@bart
State New
Headers show

Commit Message

Andreas Krebbel Jan. 29, 2014, 10:19 a.m. UTC
Hi,

the attached patch adds a prototype for __udiv_w_sdiv to longlong.h if
needed.  This fixes tons of build warnings on s390 32 bit in glibc.

Ok?

Bye,

-Andreas-


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

	* longlong.h: Add __udiv_w_sdiv prototype.

Comments

Andreas Krebbel Feb. 4, 2014, 3:57 p.m. UTC | #1
On 29/01/14 11:19, Andreas Krebbel wrote:
> Hi,
> 
> the attached patch adds a prototype for __udiv_w_sdiv to longlong.h if
> needed.  This fixes tons of build warnings on s390 32 bit in glibc.
> 
> Ok?
> 
> Bye,
> 
> -Andreas-
> 
> 
> 2014-01-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
> 
> 	* longlong.h: Add __udiv_w_sdiv prototype.
> 
> diff --git a/include/longlong.h b/include/longlong.h
> index 5f00e54..053a81d 100644
> --- a/include/longlong.h
> +++ b/include/longlong.h
> @@ -1671,7 +1671,8 @@ 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;							\
> +    extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);	\
> +    UWtype __r;								\
>      (q) = __udiv_w_sdiv (&__r, nh, nl, d);				\
>      (r) = __r;								\
>    } while (0)
>
diff mbox

Patch

diff --git a/include/longlong.h b/include/longlong.h
index 5f00e54..053a81d 100644
--- a/include/longlong.h
+++ b/include/longlong.h
@@ -1671,7 +1671,8 @@  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;							\
+    extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);	\
+    UWtype __r;								\
     (q) = __udiv_w_sdiv (&__r, nh, nl, d);				\
     (r) = __r;								\
   } while (0)