http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59260
Bug ID: 59260 Summary: fold-const.c:14871:5: error: 'hash_table' has not been declared Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: dimhen at gmail dot com trunk r205300 Fedora19/x86_64 configured as ~/src/gcc_current/configure --prefix=/usr/local/gcc_current --with-multilib-list=m64 --enable-checking=fold --enable-languages=c,c++,lto --enable-plugin --with-tune=native --with-arch=native --enable-version-specific-runtime-libs err triggered by --enable-checking=fold and looks as make[3]: Entering directory `/home/dimhen/build/gcc_current_fold/gcc' g++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/home/dimhen/src/gcc_current/gcc -I/home/dimhen/src/gcc_current/gcc/. -I/home/dimhen/src/gcc_current/gcc/../include -I/home/dimhen/src/gcc_current/gcc/../libcpp/include -I/home/dimhen/build/gcc_current_fold/./gmp -I/home/dimhen/src/gcc_current/gmp -I/home/dimhen/build/gcc_current_fold/./mpfr -I/home/dimhen/src/gcc_current/mpfr -I/home/dimhen/src/gcc_current/mpc/src -I/home/dimhen/src/gcc_current/gcc/../libdecnumber -I/home/dimhen/src/gcc_current/gcc/../libdecnumber/bid -I../libdecnumber -I/home/dimhen/src/gcc_current/gcc/../libbacktrace -DCLOOG_INT_GMP -I/home/dimhen/build/gcc_current_fold/./cloog/include -I/home/dimhen/src/gcc_current/cloog/include -I/home/dimhen/src/gcc_current/cloog/include -I/home/dimhen/build/gcc_current_fold/./isl/include -I/home/dimhen/src/gcc_current/isl/include -o fold-const.o -MT fold-const.o -MMD -MP -MF ./.deps/fold-const.TPo /home/dimhen/src/gcc_current/gcc/fold-const.c /home/dimhen/src/gcc_current/gcc/fold-const.c:14871:5: error: 'hash_table' has not been declared hash_table <pointer_hash <tree_node> >); ^ [...] For me help the following $ svn diff Index: fold-const.c =================================================================== --- fold-const.c (revision 205300) +++ fold-const.c (working copy) @@ -68,6 +68,10 @@ #include "gimplify.h" #include "tree-dfa.h" +#ifdef ENABLE_FOLD_CHECKING +#include "hash-table.h" +#endif + /* Nonzero if we are folding constants inside an initializer; zero otherwise. */ int folding_initializer = 0;