[Bug c/11173] New: (lseek (0, 0L, SEEK_CUR) < 0) is ALWAYS false, even if lseek IS negative
uwe_reimann@gmx.net
gcc-bugzilla@gcc.gnu.org
Thu Jun 12 12:50:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11173
Summary: (lseek (0, 0L, SEEK_CUR) < 0) is ALWAYS false, even if
lseek IS negative
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: hans-peter.nilsson@axis.com
ReportedBy: uwe_reimann@gmx.net
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: cris-axis-linux-gnu
GCC host triplet: cris-axis-linux-gnu
GCC target triplet: cris-axis-linux-gnu
This occurs while compiling bash-2.05b on cris-axis-linux-gnu using gcc-3.2.2.
The code is from read.def and is used to detect whether stdin is a pipe.
Compiling this code in a testcase works, but inside bash, it does not.
localhost root # gcc -v
Reading specs from /usr/lib/gcc-lib/cris-axis-linux-gnu/3.2.2/specs
Configured with: /var/tmp/portage/gcc-3.2.2/work/gcc-3.2.2/configure
--prefix=/usr --bindir=/usr/cris-axis-linux-gnu/gcc-bin/3.2
--includedir=/usr/lib/gcc-lib/cris-axis-linux-gnu/3.2.2/include
--datadir=/usr/share/gcc-data/cris-axis-linux-gnu/3.2
--mandir=/usr/share/gcc-data/cris-axis-linux-gnu/3.2/man
--infodir=/usr/share/gcc-data/cris-axis-linux-gnu/3.2/info --enable-shared
--host=cris-axis-linux-gnu --target=cris-axis-linux-gnu --with-system-zlib
--enable-languages=c,c++,ada,f77,objc --enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio --enable-clocale=generic
--enable-__cxa_atexit --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/cris-axis-linux-gnu/3.2.2/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --disable-nls
Thread model: posix
gcc version 3.2.2
gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -O2
-save-temps read.c
More information about the Gcc-bugs
mailing list