From patchwork Thu Jun 23 06:22:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rong Xu X-Patchwork-Id: 101587 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 02CEAB6F82 for ; Thu, 23 Jun 2011 16:23:09 +1000 (EST) Received: (qmail 4769 invoked by alias); 23 Jun 2011 06:23:07 -0000 Received: (qmail 4761 invoked by uid 22791); 23 Jun 2011 06:23:06 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jun 2011 06:22:52 +0000 Received: from wpaz37.hot.corp.google.com (wpaz37.hot.corp.google.com [172.24.198.101]) by smtp-out.google.com with ESMTP id p5N6MpxS024720; Wed, 22 Jun 2011 23:22:51 -0700 Received: from rong.mtv.corp.google.com (rong.mtv.corp.google.com [172.18.110.233]) by wpaz37.hot.corp.google.com with ESMTP id p5N6MnWe017298; Wed, 22 Jun 2011 23:22:50 -0700 Received: by rong.mtv.corp.google.com (Postfix, from userid 104659) id F1A9BC2979; Wed, 22 Jun 2011 23:22:48 -0700 (PDT) To: reply@codereview.appspotmail.com, davidxl@google.com, singhai@google.com, gcc-patches@gcc.gnu.org Subject: [google] fix kernel fdo booting issue (issue4627057) Message-Id: <20110623062248.F1A9BC2979@rong.mtv.corp.google.com> Date: Wed, 22 Jun 2011 23:22:48 -0700 (PDT) From: xur@google.com (Rong Xu) X-System-Of-Record: true Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * gcc/libgcov.c: (TARGET_VTABLE_USES_DESCRIPTORS): Remove. --- This patch is available for review at http://codereview.appspot.com/4627057 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__