From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by sourceware.org (Postfix) with ESMTPS id 647663858C62 for ; Mon, 28 Nov 2022 13:04:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 647663858C62 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4NLQfv0SLpz9sTv; Mon, 28 Nov 2022 14:04:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1669640695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uMRnAoYduIw6L9R1Hq8OZcVuGyTYX1RodGHKXrP++nU=; b=r39BB5sv2yAvbhIiscEspTuumQKFwJym5+i7y6M+C/e6MiciArBIXq6nM+mIiHkrnokIu5 jXeeyKWQLXLniQw5+VnJ54ksE9xG6V/QAW/ZIpAluIz51t9Fxz0o8IdplPdyNfgidErDin bx91QxUACERRkFLciqEjwofdvBCoBm5g65kpCUK/XsuYRtmr0gDKHKr6N+sKIH+s437dzd e3YsW/jn5ES7lyixKfQ8WXPLQm2KHf6/RkXDtyTaGdzIU2WpKO/NdgMdbK2bxcnJ991kUT YiUs5EhzwshnN4uBOTOIPDI1+zRUNE+XANnjxZtBDzXaY9yHx6uc3DIBeUFuWQ== References: <87y1rvs4gd.fsf@oldenburg.str.redhat.com> From: Arsen =?utf-8?Q?Arsenovi=C4=87?= To: Florian Weimer Cc: gcc@gcc.gnu.org Subject: Re: Triggering -save-temps from the front-end code Date: Mon, 28 Nov 2022 14:02:28 +0100 In-reply-to: <87y1rvs4gd.fsf@oldenburg.str.redhat.com> Message-ID: <86edtnjkln.fsf@aarsen.me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 4NLQfv0SLpz9sTv X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_INFOUSMEBIZ,KAM_SHORT,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Florian Weimer via Gcc writes: > 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. Would dumping unconditionally into some "side channel" -dumpdir be a sufficient workaround? https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Overall-Options.html#index-du= mpdir Hope that helps, have a great day. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCY4Sx9F8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSThcEA/1c6wGhlTcel8PSxdgvPrkdX0xJD8R2NN3Ol 1N+2FJdqAP9reJwSWA7+tIWYvHvhFWdWW91zNoz3pTKBtH7DGBaeDg== =J93X -----END PGP SIGNATURE----- --=-=-=--