inlining bug gcc
Pierre Innocent
babelart@yahoo.com
Fri Sep 3 16:31:00 GMT 2010
Bug Report:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.4-6' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --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 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.4 (Debian 4.3.4-6)
IInlining bug :
The value set within one inline function is reset to another value.
The value is checked by using another inline function within the set function
iinline void setFD(int32_t fd) {
_fd = fd;
COUT_2 << "DescrInfo::setIntDescr IO=" << this << " FD=[ " << fd << ", " << _fd << " ]\n";
COUT_2.flush();
DescrInfo::fd();
// The value of _fd when accessed within fd() is equal to 0; it is correct within this inline function.
}
Regards,
Pierre Innocent
babelart@yahoo.com
dev@tsert.com
More information about the Gcc-bugs
mailing list