> -----Original Message----- > From: Hahnfeld, Jonas > Sent: Tuesday, September 01, 2015 1:54 PM > To: 'Jakub Jelinek' > Cc: gcc-patches@gcc.gnu.org; Ilya Verbin; Kirill Yukhin > Subject: RE: Fix intelmic-mkoffload.c if the temp path contains a '-' > > > -----Original Message----- > > From: Jakub Jelinek [mailto:ja...@redhat.com] > > Sent: Tuesday, September 01, 2015 1:50 PM > > 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 '-' > > > > 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 <hahnf...@itc.rwth-aachen.de> > > > 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 <hahnf...@itc.rwth-aachen.de> > > > > > > * 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 > > Could you commit the patch for me as I don't have commit access? > And also consider backporting this trivial fix for 'gcc-5-branch'? > > Thanks, > Jonas
*ping* I don't have write access to the repository... Thanks, Jonas
smime.p7s
Description: S/MIME cryptographic signature