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

Reply via email to