[Bug target/32277] indir-call-prof fails on ia64-linux-gnu

schwab at suse dot de gcc-bugzilla@gcc.gnu.org
Wed Oct 8 23:01:00 GMT 2008



------- Comment #2 from schwab at suse dot de  2008-10-08 22:59 -------
This patch works for me:

Index: libgcov.c
===================================================================
--- libgcov.c   (revision 140731)
+++ libgcov.c   (working copy)
@@ -777,7 +777,11 @@ void
 __gcov_indirect_call_profiler (gcov_type* counter, gcov_type value, 
                               void* cur_func, void* callee_func)
 {
+#ifdef __ia64__
+  if (callee_func && *(void **) cur_func == *(void **) callee_func)
+#else
   if (cur_func == callee_func)
+#endif
     __gcov_one_value_profiler_body (counter, value);
 }
 #endif


-- 

schwab at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schwab at suse dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32277



More information about the Gcc-bugs mailing list