diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-09-23 21:20:34 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-09-24 18:20:21 +0200 |
commit | 28f527c9598339cf834a30b5ee1f14258b8ecbb2 (patch) | |
tree | 9d43a69d857eb3ea5f4bced292059b56986c984b /gcc/tree-profile.c | |
parent | 1eb4d0d3bad1a7faa7f1734837562aea71575740 (diff) | |
parent | 2961ac45b9e19523958757e607d11c5893d6368b (diff) | |
download | gcc-28f527c9598339cf834a30b5ee1f14258b8ecbb2.zip gcc-28f527c9598339cf834a30b5ee1f14258b8ecbb2.tar.gz gcc-28f527c9598339cf834a30b5ee1f14258b8ecbb2.tar.bz2 |
Merge commit '2961ac45b9e19523958757e607d11c5893d6368b' [#247]
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 5a74cc9..cf46912 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -250,7 +250,7 @@ gimple_gen_edge_profiler (int edgeno, edge e) { /* __atomic_fetch_add (&counter, 1, MEMMODEL_RELAXED); */ tree addr = tree_coverage_counter_addr (GCOV_COUNTER_ARCS, edgeno); - tree f = builtin_decl_explicit (LONG_LONG_TYPE_SIZE > 32 + tree f = builtin_decl_explicit (TYPE_PRECISION (gcov_type_node) > 32 ? BUILT_IN_ATOMIC_FETCH_ADD_8: BUILT_IN_ATOMIC_FETCH_ADD_4); gcall *stmt = gimple_build_call (f, 3, addr, one, @@ -525,7 +525,7 @@ gimple_gen_time_profiler (unsigned tag) tree_time_profiler_counter); gassign *assign = gimple_build_assign (ptr, NOP_EXPR, addr); gsi_insert_before (&gsi, assign, GSI_NEW_STMT); - tree f = builtin_decl_explicit (LONG_LONG_TYPE_SIZE > 32 + tree f = builtin_decl_explicit (TYPE_PRECISION (gcov_type_node) > 32 ? BUILT_IN_ATOMIC_ADD_FETCH_8: BUILT_IN_ATOMIC_ADD_FETCH_4); gcall *stmt = gimple_build_call (f, 3, ptr, one, |