diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2015-08-06 17:35:24 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2015-08-06 18:08:01 +0800 |
commit | c59adc02887d4a20101d5a04d816e0280e80a9c0 (patch) | |
tree | b8836de2ef8a0a3be33b3bac28e46626a9ab275a /gcc-4.9 | |
parent | 2a6be47f38e074f4e261b21191e2379050ec05ab (diff) | |
download | toolchain_gcc-c59adc02887d4a20101d5a04d816e0280e80a9c0.tar.gz toolchain_gcc-c59adc02887d4a20101d5a04d816e0280e80a9c0.tar.bz2 toolchain_gcc-c59adc02887d4a20101d5a04d816e0280e80a9c0.zip |
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.h | 1 | ||||
-rw-r--r-- | gcc-4.9/libgcc/libgcov-util.c | 4 |
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 e67bce4ea..895ff9867 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 4435cff4f..cb07d2875 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; |