public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pending/64094] New: "No such file or directory" -> "No such file"
@ 2014-11-27 11:18 jg at jguk dot org
  2014-11-27 12:16 ` [Bug driver/64094] " manu at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jg at jguk dot org @ 2014-11-27 11:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64094

            Bug ID: 64094
           Summary: "No such file or directory" -> "No such file"
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: pending
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jg at jguk dot org

Hello

I saw when "main.cpp" is not accessible, the standard ENOENT message "No such
file or directory" is used.

However, this is not really accurate, as it was open() that was used to open a
file. A file was expected, therefore if GCC could output "No such file" the
message would be clearer.  I objdump has this behaviour already:

$ objdump -a main2.exe
objdump: 'main2.exe': No such file



$ gcc --version
gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ gcc -o main main.cpp
gcc: error: main.cpp: No such file or directory
gcc: fatal error: no input files
compilation terminated.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-12-09  9:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-27 11:18 [Bug pending/64094] New: "No such file or directory" -> "No such file" jg at jguk dot org
2014-11-27 12:16 ` [Bug driver/64094] " manu at gcc dot gnu.org
2014-11-27 13:40 ` harald at gigawatt dot nl
2014-11-27 14:10 ` schwab@linux-m68k.org
2014-12-08 12:48 ` jg at jguk dot org
2014-12-08 12:52 ` jg at jguk dot org
2014-12-08 13:01 ` schwab@linux-m68k.org
2014-12-09  9:41 ` jg at jguk dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).