This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32277] indir-call-prof fails on ia64-linux-gnu
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2008 22:59:56 -0000
- Subject: [Bug target/32277] indir-call-prof fails on ia64-linux-gnu
- References: <bug-32277-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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