From: Alexander Monakov <amonakov@ispras.ru>
To: Xi Ruoyao <xry111@mengyan1223.wang>
Cc: Peng Yu <pengyu.ut@gmail.com>,
"gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: How to just print the output for -H without output anything else?
Date: Fri, 04 Jan 2019 08:42:00 -0000 [thread overview]
Message-ID: <alpine.LNX.2.20.13.1901041140360.30970@monopod.intra.ispras.ru> (raw)
In-Reply-To: <d9f95bc4c144ea1cc80ac72b7ad74ade7af91134.camel@mengyan1223.wang>
On Fri, 4 Jan 2019, Xi Ruoyao wrote:
> On 2019-01-03 21:18 -0600, Peng Yu wrote:
> > > A "-c" option would work.
> >
> > This still generates the .o file. Is there an option that disable all
> > the side effect but just print the header info as -H?
>
> Maybe "-E -o /dev/null"? Use "-E" instead of "-c" so the compiler and
> assembler will not run, and "-o /dev/null" to throw the result
> (preprocessed code).
There's also -fsyntax-only, but it does more work compared to -E -o/dev/null.
Alexander
next prev parent reply other threads:[~2019-01-04 8:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-04 2:21 Peng Yu
2019-01-04 2:41 ` Xi Ruoyao
2019-01-04 3:19 ` Peng Yu
2019-01-04 6:42 ` Xi Ruoyao
2019-01-04 8:42 ` Alexander Monakov [this message]
2019-01-04 15:26 ` Peng Yu
2019-01-04 15:28 ` Jonathan Wakely
2019-01-04 15:32 ` Peng Yu
2019-01-04 15:33 ` Jonathan Wakely
2019-01-04 16:46 ` Peng Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.20.13.1901041140360.30970@monopod.intra.ispras.ru \
--to=amonakov@ispras.ru \
--cc=gcc-help@gcc.gnu.org \
--cc=pengyu.ut@gmail.com \
--cc=xry111@mengyan1223.wang \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).