]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
__gcov_indirect_call_callee can't be null in __gcov_indirect_call_profiler_v2.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Aug 2018 10:22:18 +0000 (10:22 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Aug 2018 10:22:18 +0000 (10:22 +0000)
2018-08-01  Martin Liska  <mliska@suse.cz>

* libgcov-profiler.c (__gcov_indirect_call_profiler_v2): Do not
        check that  __gcov_indirect_call_callee is non-null.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263202 138bc75d-0d04-0410-961f-82ee72b054a4

libgcc/ChangeLog
libgcc/libgcov-profiler.c

index b8f85b663f5dfe437fabbd637c00df272c21a9fa..4f8ddcef3c62c4ee786704dc6653c5f3576711b5 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-01  Martin Liska  <mliska@suse.cz>
+
+       * libgcov-profiler.c (__gcov_indirect_call_profiler_v2): Do not
+        check that  __gcov_indirect_call_callee is non-null.
+
 2018-07-30  Christophe Lyon  <christophe.lyon@linaro.org>
 
        * config/arm/ieee754-df.S: Fix comment for code working on
index 596b35b1efd69214aa8dde71f4996fe9894d7ba2..7e208d75d86ba8c1a23b2fd38b7504bc81763ab3 100644 (file)
@@ -333,7 +333,7 @@ __gcov_indirect_call_profiler_v2 (gcov_type value, void* cur_func)
      function may have multiple descriptors and we need to dereference
      the descriptors to see if they point to the same function.  */
   if (cur_func == __gcov_indirect_call_callee
-      || (__LIBGCC_VTABLE_USES_DESCRIPTORS__ && __gcov_indirect_call_callee
+      || (__LIBGCC_VTABLE_USES_DESCRIPTORS__
           && *(void **) cur_func == *(void **) __gcov_indirect_call_callee))
     __gcov_one_value_profiler_body (__gcov_indirect_call_counters, value, 0);