This is the mail archive of the gcc@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]

MMAP issue on cygwin


Zack,

PR 5149 looks like an issue with mmap on Cygwin:

Environment: Windows ME
1.3.6-cygwin 1-3-6-6
../gcc-20011217/configure
--with-gcc-version-trigger=/home/gcc/gcc-20011217/gcc/version.c
--host=i686-pc-cygwin

Description: I get the following error messages for diffent files on
each retry. The linenumbers indicate that stale data after the end of
the file is read. The souce files themselves are ok.  gcc 2.95.3-5 and
gcc 3.0.2 do not show this problem.

/home/gcc/gcc/gcc/xgcc -B/home/gcc/gcc/gcc/
-B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/
-isystem /usr/local/i686-pc-cygwin/include -O2
-I../../gcc-20011217/gcc/../winsup/include
-I../../gcc-20011217/gcc/../winsup/cygwin/include
-I../../gcc-20011217/gcc/../winsup/w32api/include -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
-I. -I. -I../../gcc-20011217/gcc
-I../../gcc-20011217/gcc/. -I../../gcc-20011217/gcc/config
-I../../gcc-20011217/gcc/../include -DL_ashldi3 -c
../../gcc-20011217/gcc/libgcc2.c -o libgcc/./_ashldi3.o
In file included from ../../gcc-20011217/gcc/libgcc2.h:299,
                 from ../../gcc-20011217/gcc/libgcc2.c:46:
../../gcc-20011217/gcc/longlong.h:1489: stray '\7' in program
../../gcc-20011217/gcc/longlong.h:1489: stray '\210' in program

It would appear we've mmap-ed longlong.h, and that the bytes beyond
the end of the file are not NULs.  Or, there's an implementation bug
that doesn't show up on Linux, Solaris etc. for some reason.

Any ideas?

Neil.


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