This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/77487] gcc reports "file shorter than expected" for regular files on stdin when the offset of fd 0 isn't 0
- From: "pskocik at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Sep 2016 13:02:57 +0000
- Subject: [Bug c/77487] gcc reports "file shorter than expected" for regular files on stdin when the offset of fd 0 isn't 0
- Auto-submitted: auto-generated
- References: <bug-77487-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77487
pskocik at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pskocik at gmail dot com
--- Comment #1 from pskocik at gmail dot com ---
Created attachment 39564
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39564&action=edit
example test
a self-compiling c script -- passes self at an offset to gcc and then runs the
a.out
it should print:
c: hello world
but instead, there's also the
cc1: warning: is shorter than expected [enabled by default]
line in there