This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH] Fix libquadmath regression (bootstrap failure) on FreeBSD


On Wed, Jul 19, 2017 at 09:35:36PM +0200, Gerald Pfeifer wrote:
> Hi Jakub, 
> 
>   r250343 | jakub | 2017-07-19 13:12:58 +0000 (Wed, 19 Jul 2017) | 48 lines
> 
>         PR libquadmath/65757
>         * quadmath-imp.h (math_opt_barrier, math_force_eval,
>         math_narrow_eval, math_check_force_underflow,
>         math_check_force_underflow_nonneg): Define.
>         * math/ceilq.c: Backport changes from upstream glibc
>         between 2012-11-01 and 2017-07-13.
> 
> is causing this 
> 
>   /scratch/tmp/gerald/GCC-HEAD/libquadmath/math/powq.c: In function 'powq':
>   /scratch/tmp/gerald/GCC-HEAD/libquadmath/math/powq.c:266:11: error: 'u_int32_t'
>   undeclared (first use in this function); did you mean 'uint32_t'?
>    if (((((u_int32_t) hx >> 31) - 1) | (yisint - 1)) == 0)
>            ^~~~~~~~~
>            uint32_t
> 
> on my "nightly" FreeBSD 10/i386 tester (and I could not find a mail
> on gcc-patches referring to this commit).
> 
> This fixes it.  Okay to apply to GCC?

Ok, thanks.

>  And can you please push this
> to glibc as well (which I do not have access to)?

glibc uses u_int32_t in all the places of *powl.c where libquadmath
uses uint32_t, and various other files, so I guess it is intentional.

	Jakub


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