This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to just print the output for -H without output anything else?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]