From: Jonas Hahnfeld Date: Fri, 4 Sep 2015 11:21:39 +0000 (+0000) Subject: intelmic-mkoffload.c (prepare_target_image): Fix if the temp path contains a '-'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cda844f0ccb5be311f9aef651ea7d490942cb331;p=gcc.git intelmic-mkoffload.c (prepare_target_image): Fix if the temp path contains a '-'. 2015-09-04 Jonas Hahnfeld gcc/ * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the temp path contains a '-'. From-SVN: r227489 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ef424fad92..a3d8e602327 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-04 Jonas Hahnfeld + + * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the + temp path contains a '-'. + 2015-09-04 Andrey Turetskiy Petr Murzin Kirill Yukhin diff --git a/gcc/config/i386/intelmic-mkoffload.c b/gcc/config/i386/intelmic-mkoffload.c index ca15868dde1..49e99e86aa8 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 == '-') c = '_'; symbol_name[i] = c; }