public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/45204]  New: gcc generates incorrect code
@ 2010-08-05 23:48 contact at philipashmore dot com
  2010-08-06 10:28 ` [Bug c/45204] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: contact at philipashmore dot com @ 2010-08-05 23:48 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-08-07 10:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-05 23:48 [Bug c/45204] New: gcc generates incorrect code contact at philipashmore dot com
2010-08-06 10:28 ` [Bug c/45204] " rguenth at gcc dot gnu dot org
2010-08-06 13:37 ` contact at philipashmore dot com
2010-08-06 13:52 ` contact at philipashmore dot com
2010-08-06 13:55 ` rguenth at gcc dot gnu dot org
2010-08-07  2:01 ` contact at philipashmore dot com
2010-08-07  4:03 ` [Bug c/45204] gcc doesn't report aliasing problems in -isystem includes contact at philipashmore dot com
2010-08-07  4:10 ` pinskia at gcc dot gnu dot org
2010-08-07 10:24 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).