From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12885 invoked by alias); 1 Sep 2015 11:50:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 12852 invoked by uid 89); 1 Sep 2015 11:50:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 01 Sep 2015 11:50:19 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id BC5198C1BA; Tue, 1 Sep 2015 11:50:17 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t81BoFQl020385 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 1 Sep 2015 07:50:17 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id t81BoEOf026657; Tue, 1 Sep 2015 13:50:14 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id t81BoCNn026656; Tue, 1 Sep 2015 13:50:12 +0200 Date: Tue, 01 Sep 2015 11:50:00 -0000 From: Jakub Jelinek To: "Hahnfeld, Jonas" Cc: "gcc-patches@gcc.gnu.org" , Ilya Verbin , Kirill Yukhin Subject: Re: Fix intelmic-mkoffload.c if the temp path contains a '-' Message-ID: <20150901115012.GQ1847@tucnak.redhat.com> Reply-To: Jakub Jelinek References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00035.txt.bz2 On Tue, Sep 01, 2015 at 11:35:15AM +0000, Hahnfeld, Jonas wrote: > >From 884b6199179e7a604474bc6a828a6861d3ff4501 Mon Sep 17 00:00:00 2001 > From: Jonas Hahnfeld > Date: Thu, 20 Aug 2015 12:13:55 +0200 > Subject: [PATCH] Fix intelmic-mkoffload.c if the temp path contains a '-' > > 2015-08-20 Jonas Hahnfeld > > * intelmic-mkoffload.c (prepare_target_image): Fix if the temp path > contains a '-'. > --- > gcc/config/i386/intelmic-mkoffload.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/gcc/config/i386/intelmic-mkoffload.c > b/gcc/config/i386/intelmic-mkoffload.c > index ca15868..c9327cf 100644 > --- a/gcc/config/i386/intelmic-mkoffload.c > +++ b/gcc/config/i386/intelmic-mkoffload.c > @@ -460,7 +460,7 @@ prepare_target_image (const char *target_compiler, int > argc, char **argv) > for (size_t i = 0; i <= symbol_name_len; i++) > { > char c = target_so_filename[i]; > - if ((c == '/') || (c == '.')) > + if ((c == '/') || (c == '.') || (c == '-')) The ()s around the comparisons are unnecessary, but it is preexisting, so the fix is ok for trunk with or without the removal of those ()s. Jakub