From: Rong Xu Date: Fri, 11 Jul 2014 16:59:30 +0000 (+0000) Subject: gcov-tool.c (gcov_output_files): Fix build error introduced in commit r212448. X-Git-Tag: releases/gcc-5.1.0~6395 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68f6800408091b9f6425d009d6eedc6f86d66a4c;p=thirdparty%2Fgcc.git gcov-tool.c (gcov_output_files): Fix build error introduced in commit r212448. 2014-07-11 Rong Xu * gcov-tool.c (gcov_output_files): Fix build error introduced in commit r212448. From-SVN: r212462 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e20635fe864e..45b862bad6e0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-11 Rong Xu + + * gcov-tool.c (gcov_output_files): Fix build error introduced in + commit r212448. + 2014-07-11 Pitchumani Sivanupandi * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute. diff --git a/gcc/gcov-tool.c b/gcc/gcov-tool.c index a83b797ee099..71331cab9d1b 100644 --- a/gcc/gcov-tool.c +++ b/gcc/gcov-tool.c @@ -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