This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47460] Inconsistent behaviour of __sync_fetch_and_add builtin?
- From: "manuel dot holtgrewe at fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jan 2011 16:53:27 +0000
- Subject: [Bug tree-optimization/47460] Inconsistent behaviour of __sync_fetch_and_add builtin?
- Auto-submitted: auto-generated
- References: <bug-47460-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47460
--- Comment #3 from Manuel Holtgrewe <manuel.holtgrewe@fu-berlin.de> 2011-01-25 16:53:23 UTC ---
Sorry for posting this here again, but could somebody clarify the following,
nevertheless and if this is expected behaviour, close the bug as invalid? In
the future, I'll first try to ask on the list.
Versions 4.4 and 4.5 were built with the same parameters (modulo some
libraries), so my question is: Why are the __sync_fetch* builtins not found in
4.4 by default? Is this related to the configure parameters?
--with-cloog=/group/agabi/software/i686/gcc-4.4.5
--with-ppl=/group/agabi/software/i686/gcc-4.4.5
--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--
$ for i in 1 2 3 4 5; do g++-4.$i --version; g++-4.$i -v; done
g++-4.1 (GCC) 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--with-tune=generic --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)
g++-4.2 (GCC) 4.2.4 (Debian 4.2.4-6)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2
--program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Debian 4.2.4-6)
g++-4.3 (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
g++-4.4.5 (GCC) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../../gcc-4.4.5/configure
--prefix=/group/agabi/software/i686/gcc-4.4.5
--with-mpfr=/group/agabi/software/i686/gcc-4.4.5
--with-mpfr-lib=/group/agabi/software/i686/gcc-4.4.5/lib
--with-gmp=/group/agabi/software/i686/gcc-4.4.5
--with-mpc=/group/agabi/software/i686/gcc-4.4.5
--with-cloog=/group/agabi/software/i686/gcc-4.4.5
--with-ppl=/group/agabi/software/i686/gcc-4.4.5 --enable-languages=c,c++
--program-suffix=-4.4.5
Thread model: posix
gcc version 4.4.5 (GCC)
g++-4.5.1 (GCC) 4.5.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Using built-in specs.
COLLECT_GCC=/group/agabi/software/i686/gcc-4.5.1/bin/g++-4.5.1
COLLECT_LTO_WRAPPER=/group/agabi/software/i686/gcc-4.5.1/libexec/gcc/i686-pc-linux-gnu/4.5.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/group/agabi/software/i686/gcc-4.5.1
--with-mpfr=/group/agabi/software/i686/gcc-4.5.1
--with-mpfr-lib=/group/agabi/software/i686/gcc-4.5.1/lib
--with-gmp=/group/agabi/software/i686/gcc-4.5.1
--with-mpc=/group/agabi/software/i686/gcc-4.5.1 --enable-languages=c,c++
--program-suffix=-4.5.1
Thread model: posix
gcc version 4.5.1 (GCC)