diff options
author | Martin Liska <mliska@suse.cz> | 2016-08-17 08:55:35 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-08-17 06:55:35 +0000 |
commit | 892a653cc93da08467301e5cc18ddec7c85462f2 (patch) | |
tree | 545e63bc058dff22a56b9140f59123a5cb32f834 /gcc/gcov-io.h | |
parent | b0c67c7678bebd72eed9c0a0226777f5e3fc4cf4 (diff) | |
download | gcc-892a653cc93da08467301e5cc18ddec7c85462f2.zip gcc-892a653cc93da08467301e5cc18ddec7c85462f2.tar.gz gcc-892a653cc93da08467301e5cc18ddec7c85462f2.tar.bz2 |
Do not use LONG_LONG_TYPE_SIZE in #if macro condition
* coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
a LONG_LONG_TYPE_SIZE comparison.
* gcov-io.h: Remove macro definitions.
* tree-profile.c (gimple_gen_edge_profiler): Replace usage
of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
comparison.
From-SVN: r239522
Diffstat (limited to 'gcc/gcov-io.h')
-rw-r--r-- | gcc/gcov-io.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index afd00ac..a6da2bf 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -164,14 +164,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #ifndef GCC_GCOV_IO_H #define GCC_GCOV_IO_H -#if LONG_LONG_TYPE_SIZE > 32 -#define GCOV_TYPE_ATOMIC_FETCH_ADD_FN __atomic_fetch_add_8 -#define GCOV_TYPE_ATOMIC_FETCH_ADD BUILT_IN_ATOMIC_FETCH_ADD_8 -#else -#define GCOV_TYPE_ATOMIC_FETCH_ADD_FN __atomic_fetch_add_4 -#define GCOV_TYPE_ATOMIC_FETCH_ADD BUILT_IN_ATOMIC_FETCH_ADD_4 -#endif - #ifndef IN_LIBGCOV /* About the host */ @@ -185,8 +177,6 @@ typedef uint64_t gcov_type_unsigned; #if IN_GCOV > 0 #include <sys/types.h> #endif -#else /*!IN_GCOV */ -#define GCOV_TYPE_SIZE (LONG_LONG_TYPE_SIZE > 32 ? 64 : 32) #endif #if defined (HOST_HAS_F_SETLKW) |