aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2015-08-06 09:35:24 (GMT)
committerAndrew Hsieh <andrewhsieh@google.com>2015-08-06 10:08:01 (GMT)
commitc59adc02887d4a20101d5a04d816e0280e80a9c0 (patch)
treeb8836de2ef8a0a3be33b3bac28e46626a9ab275a /gcc-4.9
parent2a6be47f38e074f4e261b21191e2379050ec05ab (diff)
downloadtoolchain_gcc-c59adc02887d4a20101d5a04d816e0280e80a9c0.zip
toolchain_gcc-c59adc02887d4a20101d5a04d816e0280e80a9c0.tar.gz
toolchain_gcc-c59adc02887d4a20101d5a04d816e0280e80a9c0.tar.bz2
Fix mingw build breakage
1) Add missing _GCOV_fopen if !__KERNEL__ 2) Use _fullpath Change-Id: Id10cedf85e9a3409c284b77321675f61d37e76c2
Diffstat (limited to 'gcc-4.9')
-rw-r--r--gcc-4.9/gcc/gcov-io.h1
-rw-r--r--gcc-4.9/libgcc/libgcov-util.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/gcov-io.h b/gcc-4.9/gcc/gcov-io.h
index e67bce4..895ff98 100644
--- a/gcc-4.9/gcc/gcov-io.h
+++ b/gcc-4.9/gcc/gcov-io.h
@@ -187,6 +187,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
# define _GCOV_fwrite fwrite
# define _GCOV_fread fread
# define _GCOV_fileno fileno
+# define _GCOV_fopen fopen
#endif
#ifndef IN_LIBGCOV
diff --git a/gcc-4.9/libgcc/libgcov-util.c b/gcc-4.9/libgcc/libgcov-util.c
index 4435cff..cb07d28 100644
--- a/gcc-4.9/libgcc/libgcov-util.c
+++ b/gcc-4.9/libgcc/libgcov-util.c
@@ -36,6 +36,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
/* Borrowed from basic-block.h. */
#define RDIV(X,Y) (((X) + (Y) / 2) / (Y))
+#ifdef __MINGW32__
+#define realpath(path,resolved_path) _fullpath((resolved_path),(path),_MAX_PATH)
+#endif
+
extern gcov_position_t gcov_position();
extern int gcov_is_error();
extern size_t gcov_max_filename;