From owner-freebsd-alpha@FreeBSD.ORG Fri Sep 2 19:32:03 2005 Return-Path: X-Original-To: alpha@FreeBSD.org Delivered-To: freebsd-alpha@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A96B16A41F; Fri, 2 Sep 2005 19:32:03 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 786A943D46; Fri, 2 Sep 2005 19:32:02 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[10.50.40.201]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Fri, 02 Sep 2005 15:47:24 -0400 From: John Baldwin To: current@FreeBSD.org Date: Fri, 2 Sep 2005 15:32:53 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509021532.54579.jhb@FreeBSD.org> Cc: powerpc@FreeBSD.org, alpha@FreeBSD.org Subject: [PATCH] Cleanup asm constraints in atomic operations X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 19:32:03 -0000 alc@ brought to my attention a while back that while gcc allows one to use the '+' constraint modifier to collapse identical input and output operands that are in registers, it is only allowed for registers and not for memory operands. The patch below removes uses of the '+' modifier in conjunction with memory operands in the atomic operations for alpha, amd64, i386, and powerpc. Please test and let me know if there are any regressions. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org