This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]