bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long long double on interix


From: Bruno Haible
Subject: Re: long long double on interix
Date: Fri, 10 Jun 2011 11:37:39 +0200
User-agent: KMail/1.9.9

Hi,

Markus Duft wrote:
> long long double is broken.

You surely mean "long double"? There is no such type as "long long double"
in C.

> this bites me in the gnulib vasnprintf implementation, which calls snprintf
> from libc which immediately crashes ... :(  

gnulib and coreutils code now assume that the 'long double' type exists
and basically works at the compiler level (variable assignment, parameter
passing, return value).

Setting gt_cv_c_long_double=no therefore has no effect any more.

You need to find out what is wrong about that type on your platform. If
you're lucky, it's only some library functions (like snprintf) which don't
support it.

Your best starting point should be to create a gnulib testdir
  $ ./gnulib-tool --create-testdir --dir=/tmp/testdir --with-tests \
    acosl asinl atanl ceill cosl c-strtold expl float floorl fpucw frexpl \
    frexpl-nolibm ftoastr human isfinite isinf isnanl isnanl-nolibm ldexpl \
    ldtoastr logl math printf-frexpl roundl signbit sinl sqrtl tanl truncl \
    vasnprintf
and test that package on your platform. From the list of tests that fail,
you should be able to investigate the precise problems with 'long double'.

Bruno
-- 
In memoriam Lamana Ould Bou <http://fr.wikipedia.org/wiki/Lamana_Ould_Bou>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]