Re: [v3] libstdc++/50441

2011-09-18 Thread Marc Glisse
On Sun, 18 Sep 2011, Paolo Carlini wrote: tested x86_64-linux, committed to mainline. Hello, bugzilla seems to be down, so let me write it here: the testsuite uses #ifdef __SIZEOF_INT128__ to test for the availability of a 128 bit integer type. I haven't seen a similar define for float128,

Re: [v3] libstdc++/50441

2011-09-18 Thread Paolo Carlini
On 09/18/2011 09:03 AM, Marc Glisse wrote: the testsuite uses #ifdef __SIZEOF_INT128__ to test for the availability of a 128 bit integer type. I haven't seen a similar define for float128, Thanks. For now I went for a configure test, consistently for int and float, which also allows to check

Re: [v3] libstdc++/50441

2011-09-18 Thread Marc Glisse
On Sun, 18 Sep 2011, Paolo Carlini wrote: On 09/18/2011 09:03 AM, Marc Glisse wrote: the testsuite uses #ifdef __SIZEOF_INT128__ to test for the availability of a 128 bit integer type. I haven't seen a similar define for float128, Thanks. For now I went for a configure test, consistently for

Re: [v3] libstdc++/50441

2011-09-18 Thread Paolo Carlini
On 09/18/2011 11:07 AM, Marc Glisse wrote: Indeed! The documentation is not clear on whether __int128 and __float128 may be the same types as say long long and long double, or they are different types even if they have the same size (the doc was written for C, where it doesn't matter as

Re: [v3] libstdc++/50441

2011-09-18 Thread Joseph S. Myers
On Sun, 18 Sep 2011, Marc Glisse wrote: On Sun, 18 Sep 2011, Paolo Carlini wrote: On 09/18/2011 09:03 AM, Marc Glisse wrote: the testsuite uses #ifdef __SIZEOF_INT128__ to test for the availability of a 128 bit integer type. I haven't seen a similar define for float128, Thanks. For

Re: [v3] libstdc++/50441

2011-09-18 Thread Paolo Carlini
On 09/18/2011 08:36 PM, Joseph S. Myers wrote: __int128_t and __uint128_t are legacy typedefs for __int128 and unsigned __int128. I didn't realize this. Thus I guess, for 50441 and also for 40856 (which I'm about to do) better doing everything in terms of __int128 and unsigned __int128.

Re: [v3] libstdc++/50441

2011-09-18 Thread Paolo Carlini
On 09/18/2011 08:58 PM, Paolo Carlini wrote: On 09/18/2011 08:36 PM, Joseph S. Myers wrote: __int128_t and __uint128_t are legacy typedefs for __int128 and unsigned __int128. I didn't realize this. Thus I guess, for 50441 and also for 40856 (which I'm about to do) better doing everything in

Re: [v3] libstdc++/50441

2011-09-18 Thread Paolo Carlini
Hi again, just little more details: I'm currently blocked by the following issue. If I try to compile, with -std=gnu++98 (the default for C++) and -pedantic-errors: templatetypename T struct limits; template struct limits__int128 { }; template struct limitsunsigned __int128 { }; I get:

[v3] libstdc++/50441

2011-09-17 Thread Paolo Carlini
Hi, tested x86_64-linux, committed to mainline. Paolo. /// 2011-09-17 Paolo Carlini paolo.carl...@oracle.com PR libstdc++/50441 * acinclude.m4 ([GLIBCXX_ENABLE_INT128_FLOAT128]): Add. * configure.ac: Call it. * include/std/type_traits