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]

[Bug c/77487] gcc reports "file shorter than expected" for regular files on stdin when the offset of fd 0 isn't 0


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

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