public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Triggering -save-temps from the front-end code
@ 2022-11-28 11:28 Florian Weimer
  2022-11-28 11:44 ` Richard Biener
  2022-11-28 13:02 ` Arsen Arsenović
  0 siblings, 2 replies; 5+ messages in thread
From: Florian Weimer @ 2022-11-28 11:28 UTC (permalink / raw)
  To: gcc

I've got some instrumentation for logging errors to a magic directory,
so that I can see if a build triggered them even when it did not
fail—and hid all compiler errors and warnings.

Unfortunately, some build systems immediately delete the input source
files.  Is there some easy way I can dump the pre-processed and
non-preprocessed sources to my log file?  I tried to understand how
-save-temps for crash recovery works, but it seems that this runs
outside of the frontend, in the driver.

Here's an example of the
challenges this would help to solve:

  Building in strict C99 mode
  <https://github.com/ksh93/ksh/issues/587>

Thanks,
Florian


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

end of thread, other threads:[~2022-11-28 17:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-28 11:28 Triggering -save-temps from the front-end code Florian Weimer
2022-11-28 11:44 ` Richard Biener
2022-11-28 13:02 ` Arsen Arsenović
2022-11-28 13:14   ` Florian Weimer
2022-11-28 17:18     ` Marc Glisse

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