This change removes the define of TARGET_VTABLE_USES_DESCRIPTORS in 
kernel fdo which causes kernel panic in indirect-call-profiling.

Tested with 2.6.34 kernel. This change only affects kernel code.

This is for google_main only.

-Rong

2011-06-22   Rong Xu  <x...@google.com>

        * gcc/libgcov.c: (TARGET_VTABLE_USES_DESCRIPTORS): Remove.

Index: gcc/libgcov.c
===================================================================
--- gcc/libgcov.c       (revision 175328)
+++ gcc/libgcov.c       (working copy)
@@ -36,7 +36,6 @@
 # define L_gcov_average_profiler
 # define L_gcov_ior_profiler
 
-# define TARGET_VTABLE_USES_DESCRIPTORS 0
 # define HAVE_CC_TLS 0
 # define __GCOV_KERNEL__
 

--
This patch is available for review at http://codereview.appspot.com/4627057

Reply via email to