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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The options are the same for this purpose. I am just running the test
on Mac OS X. But I could use Linux as well. I don't think the results
are different.

On Fri, Jan 4, 2019 at 9:28 AM Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
>
> On Fri, 4 Jan 2019 at 15:26, Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
> >
> > On Fri, Jan 4, 2019 at 12:42 AM Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx> 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).
> >
> > Thanks. This works.
> >
> > Is there a way to further strip off systems headers as in -MM? Thanks.
>
> You're not using GCC, so maybe you should ask on a Clang list.



-- 
Regards,
Peng



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux