Apologies in advance for not being able to create a small code sample. The code is in SourceForge GIT repository for treedb. To build treedb you will need v3c - the GIT version.
First download v3c and "make prefix=[install-location] && [sudo] make install". cd [treedb-dir] "make debug check" works but "make git branch=master check" fails - hangs. The release build ("make release") is definately incorrect. The code has some hacks for strict aliasing but contrary to the documentation, these aren't caught with "-fstrict-aliasing -Wstrict-aliasing". The makefile I used to build gcc and it's required libraries follows. all: cd build/gmp && ../../gmp-4.3.2/configure --prefix=/opt/gcc --enable-cxx && \ make && sudo make install cd build/mpfr && ../../mpfr-3.0.0/configure --prefix=/opt/gcc --with-gmp=/opt/gcc && \ make && sudo make install cd build/mpc && ../../mpc-0.8.2/configure --prefix=/opt/gcc --with-mpfr=/opt/gcc && \ make && sudo make install cd build/ppl && ../../ppl-0.10.2/configure --prefix=/opt/gcc --with-libgmp-prefix=/opt/gcc --with-libgmpxx-prefix=/opt/gcc --enable-cxx --no-create --no-recursion && \ make && sudo make install cd build/cloog-ppl && ../../cloog-ppl-0.15.9/configure --with-ppl=/opt/gcc --with-gmp=/opt/gcc --prefix=/opt/gcc && \ make && sudo make install cd build/gcc-4.5.1 && ../../gcc-4.5.1/configure -v --with-pkgversion="Philip Ashmore's build 4.5.1-1" --with-bugurl=file:///opt/gcc/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++ --prefix=/opt/gcc --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/opt/gcc/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/opt/gcc/include/c++/4.5 --program-suffix=-4.5 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --with-arch-32=i586 --with-tune=core2 --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-mpc=/opt/gcc --with-mpfr=/opt/gcc --with-gmp=/opt/gcc --with-ppl=/opt/gcc --with-cloog=/opt/gcc && \ make && sudo make install -- Summary: gcc generates incorrect code Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: contact at philipashmore dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45204