Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754455Ab1DNHtS (ORCPT ); Thu, 14 Apr 2011 03:49:18 -0400 Received: from fanny.its.uu.se ([130.238.4.241]:63887 "EHLO fanny.its.uu.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752364Ab1DNHtR (ORCPT ); Thu, 14 Apr 2011 03:49:17 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19878.42746.60978.537126@pilspetsen.it.uu.se> Date: Thu, 14 Apr 2011 09:49:14 +0200 From: Mikael Pettersson To: Richard Weinberger Cc: linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net Subject: Re: gcc-4.6.0 generates no code for sub_preempt_count() In-Reply-To: <201104132150.05623.richard@nod.at> References: <201104132150.05623.richard@nod.at> X-Mailer: VM 7.17 under Emacs 20.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 25 Richard Weinberger writes: > Hi, > > I'm facing a very strange issue with gcc-4.6.0 and UML. > Within __local_bh_enable() gcc generates no code for sub_preempt_count(). > > See: > http://userweb.kernel.org/~rw/uml-gcc460/__local_bh_enable-gcc460.txt > vs. > http://userweb.kernel.org/~rw/uml-gcc460/__local_bh_enable-gcc431.txt > > Interestingly it generates code for add_preempt_count(). > I can reproduce this on x86 and x86_64. > > The problem has to do with UML's current_thread_info() function. > When I replace it with arch/x86's (unportable) variant gcc generates code. > > Any ideas whether this is a gcc or a kernel issue? Please provide a standalone test case. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/