This is the mail archive of the gcc@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]

Re: New boost regressions since yesterday for gcc 3.0.1




On 14 Aug 2001, Gabriel Dos Reis wrote:

> Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de> writes:
> 
> | There are two new failures when running the boost regression test
> | suite vs gcc 3.0.1 on the i686-pc-linux-gnu target. These problems were
> | not present yesterday. 
> 
> Peter,
> 
>   Please, could you tell me where those DBL_MAX are coming from?  We
> don't use those symbols in <limits>
> 
> [...]
> 
> | **** test failed: traits::const_max == traits::max(), file: ../libs/integer/integer_traits_test.cpp, line: 50
> | Checking short; min is -32768, max is 32767
> | Checking unsigned short; min is 0, max is 65535
> | Checking int; min is -2147483648, max is 2147483647
> | Checking unsigned int; min is 0, max is 4294967295
> | Checking long; min is -2147483648, max is 2147483647
> | Checking unsigned long; min is 0, max is 4294967295
> | Checking int64_t (possibly long long); min is -9223372036854775808, max is 9223372036854775807
> | Checking uint64_t (possibly unsigned long long); min is 0, max is 18446744073709551615
> 
> What is wrong with the above?
> 
> -- Gaby
> 

I believe the second boost related problem can be described by the
following testcase tp.C. Since chars are signed on linux, I expect
that the output of both tests should be the same. But this is not the
case. Minimum value is 0 (^@), maximum is 255 (). 
Could please make this consistent; if I am not mistaken the
output of
the second test is expected for signed chars.

I apologize if I made a mistake. I cannot provide a patch since I do
not understand the rather complicated macro machinery.
Hope this helps,

Peter Schmid

Source code tp.C
#include <iostream>
#include <limits>
#include <limits.h>

int main()
{
    
    std::cout << "limit.h" << std::endl;
    std::cout << "Checking " << "char"
              << "; min is " << CHAR_MIN
              << ", max is " << CHAR_MAX
              << std::endl;

    std::cout << "limit" <<std::endl;
    std::cout << "Checking " << "char"
              << "; min is " << std::numeric_limits<char>::min()
              << ", max is " << std::numeric_limits<char>::max()
              << std::endl;
}

Compiling tp.C
g++ -v -o tp tp.C -W -Wall 

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
Configured with: ../gcc/configure --enable-shared --enable-threads=posix --enable-languages=c,c++,f77,objc --disable-nls --enable-clocale=gnu
Thread model: posix
gcc version 3.0.1 20010814 (prerelease)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=1 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -W -Wall -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ tp.C -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase tp.C -W -Wall -version -o /tmp/ccYVDJ9Z.s
GNU CPP version 3.0.1 20010814 (prerelease) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0.1 20010814 (prerelease) (i686-pc-linux-gnu)
	compiled by GNU C version 3.0.1 20010814 (prerelease).
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/g++-v3
 /usr/local/include/g++-v3/i686-pc-linux-gnu
 /usr/local/include/g++-v3/backward
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/ccZl47gw.o /tmp/ccYVDJ9Z.s
GNU assembler version 2.11.90.0.23 (i686-pc-linux-gnu) using BFD version 2.11.90.0.23
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o tp /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/../../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/../../.. /tmp/ccZl47gw.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/crtend.o /usr/lib/crtn.o

Running tp
./tp
limit.h
Checking char; min is -128, max is 127
limit
Checking char; min is ^@, max is 


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