The doc on --enable-checking at:
http://gcc.gnu.org/install/configure.html
contains:
--enable-checking=list
and implies that list may either be a category (yes,all,release,no) or a
sequence of flags (e.g. fold,gcac,gc,valgrind); however, it doesn't
describe what the flags mean. Could someone do that or provide
a link to the descriptions. Based on:
http://gcc.gnu.org/ml/gcc/2007-01/msg01234.html
I guess fold doesn't work. I did try:
--enable-checking=assert,misc,tree,gc,gcac,rtlflag,runtime,valgrind
but the compile of the compiler was taking way too long. I need a way
to track down what's causing an ICE in Gregor's variadic template
compiler. When just using --enable-checking=yes, I was able to
use gdb to find that the value of __FILE__ was corrupted:
(gdb) up
#1 0x0809e6eb in tsubst (t=0x4034f8a0, args=0x40351ca8, complain=3,
in_decl=0x4032eea0) at ../../gcc-4.1.1/gcc/cp/pt.c:8095
(gdb) down
#0 fancy_abort (file=0xdc <Address 0xdc out of bounds>, line=8218,
function=0xdc <Address 0xdc out of bounds>)
at ../../gcc-4.1.1/gcc/diagnostic.c:602
(gdb) p *file
Cannot access memory at address 0xdc
(gdb)
Could someone provide a suggestion about what value of --enable-checking
to use to help find the problem?
TIA.
-regards,
Larry