Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 9 Feb 2002 15:04:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 9 Feb 2002 15:04:13 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:30985 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Sat, 9 Feb 2002 15:04:00 -0500 Date: Sat, 9 Feb 2002 13:49:42 -0800 (PST) From: Linus Torvalds To: "H. Peter Anvin" cc: Andrew Morton , Hugh Dickins , Marcelo Tosatti , Subject: Re: [PATCH] BUG preserve registers In-Reply-To: <3C657FDF.5070605@zytor.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 9 Feb 2002, H. Peter Anvin wrote: > > > > This is all assuming that gcc doesn't create the string for inline > > functions that aren't used, which it probably cannot, so maybe this > > doesn't work out. > > Since gcc wouldn't even *see* a macro it didn't use, I find it hard to > imagine it would create anything. Oh, but I was talking about the case of the macro being used in an "static inline" in a header file, and that inline is not actually _used_ anywhere.. > However, you really want to do "asm volatile" rather than "asm"... Without any inputs and outputs, asms default to volatile, but yes, I agree. Better make it explicit. Linus - 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/