intelmic-mkoffload.c (prepare_target_image): Fix if the temp path contains a '-'.
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Fri, 4 Sep 2015 11:21:39 +0000 (11:21 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Fri, 4 Sep 2015 11:21:39 +0000 (11:21 +0000)
2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>

gcc/
* config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
temp path contains a '-'.

From-SVN: r227489

gcc/ChangeLog
gcc/config/i386/intelmic-mkoffload.c

index 7ef424fad923d866a94bb41136f208818d87a41f..a3d8e6023274ddb286ab8c15249be4b873dd6393 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
+
+       * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
+       temp path contains a '-'.
+
 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
            Petr Murzin  <petr.murzin@intel.com>
            Kirill Yukhin <kirill.yukhin@intel.com>
index ca15868dde1aca9833d191091d30f84e6885988d..49e99e86aa835aa2e8afe861ca39faf398cd5c79 100644 (file)
@@ -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;
     }