public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/108732] New: Pre-compiled headers cannot be output to /dev/null
@ 2023-02-08 21:59 matt at immute dot net
  2023-02-08 22:09 ` [Bug pch/108732] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: matt at immute dot net @ 2023-02-08 21:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108732
           Summary: Pre-compiled headers cannot be output to /dev/null
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: matt at immute dot net
  Target Milestone: ---

with GCC 12, the following command fails with a fairly obscure error:

   $ gcc12.2.0 -c foo.h -o /dev/null
   foo.h:1: fatal error: cannot write PCH file: required memory segment
unavailable
   compilation terminated.

This also fails when invoked via g++. It works fine if the output is a normal
file, and it always worked with previous GCC versions, so this is a pretty
surprising change.

This may seem like a strange thing to want to do, but I maintain a number of
builds that do similar invocations to verify that each header file is
self-contained.

Either way, I think it would be best to fix it, or if that's not possible, it
would be nice to improve the error message at the very least.

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

end of thread, other threads:[~2023-05-22 23:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 21:59 [Bug c/108732] New: Pre-compiled headers cannot be output to /dev/null matt at immute dot net
2023-02-08 22:09 ` [Bug pch/108732] " pinskia at gcc dot gnu.org
2023-02-08 22:11 ` pinskia at gcc dot gnu.org
2023-02-08 22:23 ` matt at immute dot net
2023-02-08 22:45 ` pinskia at gcc dot gnu.org
2023-02-08 22:56 ` matt at immute dot net
2023-02-08 23:01 ` pinskia at gcc dot gnu.org
2023-02-08 23:15 ` matt at immute dot net
2023-05-22 23:16 ` justinpopo6 at gmail dot com

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).