From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266071AbTLIPpR (ORCPT ); Tue, 9 Dec 2003 10:45:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266072AbTLIPpR (ORCPT ); Tue, 9 Dec 2003 10:45:17 -0500 Received: from terminus.zytor.com ([63.209.29.3]:45028 "EHLO terminus.zytor.com") by vger.kernel.org with ESMTP id S266071AbTLIPpO (ORCPT ); Tue, 9 Dec 2003 10:45:14 -0500 Message-ID: <3FD5ED77.6070505@zytor.com> Date: Tue, 09 Dec 2003 07:42:47 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en, sv, es, fr MIME-Version: 1.0 To: Arnd Bergmann CC: Linus Torvalds , Jamie Lokier , Nikita Danilov , linux-kernel@vger.kernel.org Subject: Re: const versus __attribute__((const)) References: <200312081646.42191.arnd@arndb.de> <3FD57C77.4000403@zytor.com> <200312091256.47414.arnd@arndb.de> In-Reply-To: <200312091256.47414.arnd@arndb.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann wrote: > > For reference, both gcc-3.3 and gcc-3.4 (snapshot) give produce the same assembly > as gcc-3.2 for your code, but give this warning: > > test.c:6: warning: use of memory input without lvalue in asm operand 1 is deprecated > test.c:7: warning: use of memory input without lvalue in asm operand 1 is deprecated > In some ways, this is rather unfortunate, too. What it really means is that the gcc "m" constraint is overloaded; it would have been better if they would have created a new modifier (say "*") for "must be lvalue." -hpa