[lfs-6.7-rc1] Gcc 4.5.1 Chapter 6 Test Errors

Bruce Dubbs bruce.dubbs at gmail.com
Tue Sep 14 14:56:55 PDT 2010


Matthew Burgess wrote:
> On Tue, 14 Sep 2010 11:43:33 -0500, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
> 
>> Upgrade the stack limit with 'ulimit -s 32768' and rerun the tests to 
>> see if they continue to fail.
> 
> Bruce, I've just tried this with various stack sizes.  11k still tickles the
> bug, 12k is big enough to work around it.  This is, however, just running the
> following:
> 
> $ ulimit -s 12288
> $ cd /sources/gcc-4.5.1/gcc/testsuite/gcc.c-torture/compile
> $ gcc -o limits-exprparen.o limits-exprparen.c
> 
> i.e. it's not being tested from within the GCC test framework.  I don't think
> that should matter though.

I just ran a complete gcc build with  ulimit -s 32768 and the tests all 
passed except 13 from mudflap.  Of course we already mention mudflap.  I 
don't recall ever having all the mudflap tests pass.

This got me interested.

gcc -Wall -o t -O2 -fmudflap -fmudflapir -lmudflap pass46-frag.c
pass46-frag.c:15:14: warning: array subscript is above array bounds

gcc -Wall -o t -O2 -fmudflap -fmudflapir -lmudflap pass45-frag.c
pass45-frag.c:21:9: warning: unused variable 'cccp'

g++ -Wall -o t -O3 -fmudflap -fmudflapir -lmudflap fail31-frag.c
fail31-frag.c:8:7: warning: unused variable 'z'

I can't get pass41-frag.cxx to fail.  It's a very simple c++ Hello, 
World (literally) using STL strings.

libmudflap is a library to instrument all risky pointer/array 
dereferencing operations, some standard library string/heap functions, 
and some other associated constructs with range/validity tests.

It should never be used in a production program.

   -- Bruce


FAIL: libmudflap.c/pass46-frag.c (-O2) (test for excess errors)
FAIL: libmudflap.c/pass46-frag.c (-O2) (test for excess errors)
FAIL: libmudflap.c/fail31-frag.c (-O3) output pattern test
FAIL: libmudflap.c/pass45-frag.c (-O3) execution test
FAIL: libmudflap.c/pass45-frag.c (-O3) output pattern test
FAIL: libmudflap.c/pass45-frag.c (-O3) execution test
FAIL: libmudflap.c/pass45-frag.c (-O3) output pattern test
FAIL: libmudflap.c/pass46-frag.c (-O3) (test for excess errors)
FAIL: libmudflap.c/pass46-frag.c (-O3) (test for excess errors)
Running /sources/gcc-4.5.1/libmudflap/testsuite/libmudflap.c/externs.exp ...
Running 
/sources/gcc-4.5.1/libmudflap/testsuite/libmudflap.c++/c++frags.exp ...
FAIL: libmudflap.c++/pass41-frag.cxx execution test
FAIL: libmudflap.c++/pass41-frag.cxx ( -O) execution test
FAIL: libmudflap.c++/pass41-frag.cxx (-O2) execution test
FAIL: libmudflap.c++/pass41-frag.cxx (-O3) execution test
Running /sources/gcc-4.5.1/libmudflap/testsuite/libmudflap.c++/ctors.exp ...
Running 
/sources/gcc-4.5.1/libmudflap/testsuite/libmudflap.cth/cthfrags.exp ...

                 === libmudflap Summary ===

# of expected passes            1414
# of unexpected failures        13



More information about the lfs-dev mailing list