[PING] [PATCH] longlong.h: Add prototype for udiv_w_sdiv

2014-09-12 Thread Stefan Liebler

Hi,

the patch from Andreas Krebbel 
(https://gcc.gnu.org/ml/gcc-patches/2014-02/msg00194.html) adds a 
prototype for __udiv_w_sdiv to longlong.h if needed.


This fixes a build failure of glibc on s390 31 bit.
(see Re: [PATCH] Turn implict-function-declaration warnings into 
errors, https://www.sourceware.org/ml/libc-alpha/2014-09/msg00264.html)


Please review Andreas Krebbel´s patch and give okay for commit.

Bye
Stefan



Re: [PING] [PATCH] longlong.h: Add prototype for udiv_w_sdiv

2014-09-12 Thread Ian Lance Taylor
On Fri, Sep 12, 2014 at 1:29 AM, Stefan Liebler s...@linux.vnet.ibm.com wrote:

 the patch from Andreas Krebbel
 (https://gcc.gnu.org/ml/gcc-patches/2014-02/msg00194.html) adds a prototype
 for __udiv_w_sdiv to longlong.h if needed.

 This fixes a build failure of glibc on s390 31 bit.
 (see Re: [PATCH] Turn implict-function-declaration warnings into errors,
 https://www.sourceware.org/ml/libc-alpha/2014-09/msg00264.html)

 Please review Andreas Krebbel愀 patch and give okay for commit.

Andreas's patch is OK.

Thanks.

Ian


[PING] [PATCH] longlong.h: Add prototype for udiv_w_sdiv

2014-02-04 Thread Andreas Krebbel
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.kreb...@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)