public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107448] New: GCC no longer diagnoses missing input file with -MG
@ 2022-10-28  6:31 boris at kolpackov dot net
  2022-11-10 14:26 ` [Bug driver/107448] GCC no longer diagnoses missing input file with -MG since r11-6855-g4804de453e7f5f90 marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: boris at kolpackov dot net @ 2022-10-28  6:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107448
           Summary: GCC no longer diagnoses missing input file with -MG
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: boris at kolpackov dot net
  Target Milestone: ---

With GCC 10 when trying to extract dependency information with -MG we get
diagnostics if the input file does not exist:

$ g++-10 -M -MG /tmp/no-such-file.cxx
g++-10: error: /tmp/no-such-file.cxx: No such file or directory
g++-10: fatal error: no input files
compilation terminated.

$ echo $?
1

In GCC 11 and 12 this diagnostics is gone:

$ g++-11 -M -MG /tmp/no-such-file.cxx
$ echo $?
1

$ g++-12 -M -MG /tmp/no-such-file.cxx
$ echo $?
1

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

end of thread, other threads:[~2023-05-29 10:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28  6:31 [Bug c/107448] New: GCC no longer diagnoses missing input file with -MG boris at kolpackov dot net
2022-11-10 14:26 ` [Bug driver/107448] GCC no longer diagnoses missing input file with -MG since r11-6855-g4804de453e7f5f90 marxin at gcc dot gnu.org
2022-11-10 23:37 ` [Bug driver/107448] [11/12/13 Regression] " pinskia at gcc dot gnu.org
2023-02-21 13:47 ` rguenth at gcc dot gnu.org
2023-05-29 10:07 ` [Bug preprocessor/107448] [11/12/13/14 " jakub at gcc dot gnu.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).