From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84428 invoked by alias); 4 Jan 2019 08:42:44 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 84416 invoked by uid 89); 4 Jan 2019 08:42:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*ru X-HELO: smtp.ispras.ru Received: from bran.ispras.ru (HELO smtp.ispras.ru) (83.149.199.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 Jan 2019 08:42:42 +0000 Received: from monopod.intra.ispras.ru (monopod.intra.ispras.ru [10.10.3.121]) by smtp.ispras.ru (Postfix) with ESMTP id 38B34203C3; Fri, 4 Jan 2019 11:42:39 +0300 (MSK) Date: Fri, 04 Jan 2019 08:42:00 -0000 From: Alexander Monakov To: Xi Ruoyao cc: Peng Yu , "gcc-help@gcc.gnu.org" Subject: Re: How to just print the output for -H without output anything else? In-Reply-To: Message-ID: References: <2e59952e46ea64375f74fae9e2f26647a16ab126.camel@mengyan1223.wang> User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2019-01/txt/msg00009.txt.bz2 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