From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 72B873858C3A for ; Mon, 28 Nov 2022 13:14:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 72B873858C3A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669641274; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Lw5SKEeQAhq9jV5kclpzGLZadXIH/KtHk2xaDWcP1U8=; b=cybebUAtk6P4nxxNtnwRpbrzrUmy/xJzmO8a7bUYiH90+x0Tw4agU/AiVTCv+yVbs4iWn3 /dhEa6efOMDjoTWJI398qrR16Fmr9wPCcDttVTWQ7DS8NPf2ubh76sGpByuI2K9GpfK9KV 5tiJTMsRAWQb6uVacH/EUanZrFoiU4A= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-85-Wz9xCVcpNCeLJ526mGFKeg-1; Mon, 28 Nov 2022 08:14:30 -0500 X-MC-Unique: Wz9xCVcpNCeLJ526mGFKeg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4E1ED38041E1; Mon, 28 Nov 2022 13:14:30 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.79]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8B28740C6EC2; Mon, 28 Nov 2022 13:14:29 +0000 (UTC) From: Florian Weimer To: Arsen =?utf-8?Q?Arsenovi=C4=87?= Cc: gcc@gcc.gnu.org Subject: Re: Triggering -save-temps from the front-end code References: <87y1rvs4gd.fsf@oldenburg.str.redhat.com> <86edtnjkln.fsf@aarsen.me> Date: Mon, 28 Nov 2022 14:14:26 +0100 In-Reply-To: <86edtnjkln.fsf@aarsen.me> ("Arsen =?utf-8?Q?Arsenovi=C4=87?= =?utf-8?Q?=22's?= message of "Mon, 28 Nov 2022 14:02:28 +0100") Message-ID: <87pmd7rzkd.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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: * Arsen Arsenovi=C4=87: > 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? Of the file names overlap, and it seems in this case, the dump files are just overwritten. I don't see a way to make the file names unique. I guess for the tough cases, I can just keep running the build under strace. Thanks, Florian