This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

inlining bug gcc


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








Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]