]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcov-tool.c (gcov_output_files): Fix build error introduced in commit r212448.
authorRong Xu <xur@google.com>
Fri, 11 Jul 2014 16:59:30 +0000 (16:59 +0000)
committerRong Xu <xur@gcc.gnu.org>
Fri, 11 Jul 2014 16:59:30 +0000 (16:59 +0000)
2014-07-11  Rong Xu  <xur@google.com>

* gcov-tool.c (gcov_output_files): Fix build error introduced in
commit r212448.

From-SVN: r212462

gcc/ChangeLog
gcc/gcov-tool.c

index e20635fe864e9475e70cea3f70496cc4e85eb024..45b862bad6e0fc1d79544080434d6848e58375e7 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-11  Rong Xu  <xur@google.com>
+
+       * gcov-tool.c (gcov_output_files): Fix build error introduced in
+       commit r212448.
+
 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
 
        * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
index a83b797ee099e83e9e2ed11be44bda5ad66561af..71331cab9d1b230e77c5683ad2b9abb3142cb65b 100644 (file)
@@ -90,8 +90,8 @@ gcov_output_files (const char *out, struct gcov_info *profile)
   /* Try to make directory if it doesn't already exist.  */
   if (access (out, F_OK) == -1)
     {
-#ifdef TARGET_POSIX_IO
-      if (mkdir (out, 0755) == -1 && errno != EEXIST)
+#if !defined(_WIN32)
+      if (mkdir (out, S_IRWXU | S_IRWXG | S_IRWXO) == -1 && errno != EEXIST)
 #else
       if (mkdir (out) == -1 && errno != EEXIST)
 #endif