From cda844f0ccb5be311f9aef651ea7d490942cb331 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Fri, 4 Sep 2015 11:21:39 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/intelmic-mkoffload.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2