From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id ED079385829F for ; Mon, 22 Aug 2022 07:45:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ED079385829F Received: by mail-ej1-x62e.google.com with SMTP id gk3so19467415ejb.8 for ; Mon, 22 Aug 2022 00:45:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=Ru07L9WpcVFDkLNIS8ze3cvG2t0uUIxaawfxtxupA3Q=; b=3mC4vXdPIiogZuQPC8TXSgMF2FAsKrIpagLU7MO/kl1ZnfR0UHS16aeUsOY5tmnteT sKYOlXMyWhHoD6YpcOdu/G7A35i8qRQVRzHYVlptyEy2iptF7S8zKEKdYTI4rDEu/ScC Jn73NvKsPY9TiXebFAX+4Rc97CICOESJMUrGgpsg4oGEXUPWFJi4I7eJbtIVypsqAc5a Lpd5HGVK/Yt0FaSW3rjd8i+gaIAQPBovWTejobqVvx/tpTekJ/+FkuJ2r6eNoaNr+leV owv34nEP6qP6JUVkkYMOeEP+5bA9TJ4hbkuFri5ESP9w7EHooXP+85GYDpBgkNABLBvf Jh6g== X-Gm-Message-State: ACgBeo2AJLSyV0aoprdZhskUdbz3lvHqyqyqyKHLGDH8XeMs5eq+Korj zGPwUkTTyYgLQhs6Nip9nS2uDW6DjcQAdzVriGYZjdaf X-Google-Smtp-Source: AA6agR74BLPQrGyod72dkrEx8DKXPAStfNEMcQTR68dHIrXyEeOQHuOwFjkLqaOrXfpVpbtCNPIpPh0HTxakSTtMAcM= X-Received: by 2002:a17:907:6295:b0:703:92b8:e113 with SMTP id nd21-20020a170907629500b0070392b8e113mr12364115ejc.594.1661154309302; Mon, 22 Aug 2022 00:45:09 -0700 (PDT) MIME-Version: 1.0 References: <0ab0cff7-01b7-a637-b8f4-9e6d6417f324@codesourcery.com> In-Reply-To: <0ab0cff7-01b7-a637-b8f4-9e6d6417f324@codesourcery.com> From: Richard Biener Date: Mon, 22 Aug 2022 09:44:56 +0200 Message-ID: Subject: Re: [Patch] lto-wrapper.cc: Delete offload_names temp files in case of error [PR106686] To: Tobias Burnus Cc: gcc-patches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2022 07:45:12 -0000 On Fri, Aug 19, 2022 at 6:54 PM Tobias Burnus wro= te: > > I saw that files such as /tmp/ccxFKYeS.target.o kept accumulating. Not a = high number, > but still several. > > I turned out that when compiling an offloading program successfully, they= were removed. > But when it failed, those remained. (Example: See PR.) > > This patch fixes this by storing the file name earlier and process them d= uring cleanup, > unless they have been taken care of before. (Usual way; as they are print= f'ed to stdout, > I assume the caller takes care of the tmp files.) > > OK for mainline? OK. > Tobias > > > ----------------- > Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 2= 01, 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch= =C3=A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellsc= haft: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955