From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17186 invoked by alias); 6 Nov 2003 15:08:06 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17174 invoked from network); 6 Nov 2003 15:08:05 -0000 Received: from unknown (HELO mx5.informatik.uni-tuebingen.de) (134.2.12.32) by sources.redhat.com with SMTP; 6 Nov 2003 15:08:05 -0000 Received: from localhost (loopback [127.0.0.1]) by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id C775211A; Thu, 6 Nov 2003 16:08:04 +0100 (NFT) Received: from mx5.informatik.uni-tuebingen.de ([127.0.0.1]) by localhost (mx5 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22854-04; Thu, 6 Nov 2003 16:08:03 +0100 (MET) Received: from juist (semeai.Informatik.Uni-Tuebingen.De [134.2.15.66]) by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id 172AA117; Thu, 6 Nov 2003 16:08:03 +0100 (NFT) Received: from falk by juist with local (Exim 3.36 #1 (Debian)) id 1AHljs-0002Sr-00; Thu, 06 Nov 2003 16:08:00 +0100 To: Christian Hildner Cc: gcc-help@gcc.gnu.org Subject: Re: Inline assembly clobbered registers References: <3FAA4B1B.5080708@hob.de> <87sml1lj7t.fsf@student.uni-tuebingen.de> <3FAA6156.8060507@hob.de> From: Falk Hueffner Date: Thu, 06 Nov 2003 15:08:00 -0000 In-Reply-To: <3FAA6156.8060507@hob.de> Message-ID: <87fzh11qnl.fsf@student.uni-tuebingen.de> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (cabbage) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (McAfee AntiVirus) at informatik.uni-tuebingen.de X-SW-Source: 2003-11/txt/msg00074.txt.bz2 Christian Hildner writes: > Falk Hueffner schrieb: > >Christian Hildner writes: > >>I need a temporary general register inside the inline assembly > >>code. The definition for a particular register is possible by for > >>example "eax". But how to define a general register that the > >>compiler is allowed to choose as it is possible with input/output > >>registers who are referenced by %0, %1, ... ? So simply to allow "r" > >>in the clobbered list and reference it by %x in the assembly code. > > > >Why can't you just make it an output variable? > > > I made it an input one instead. That will lead to wrong code, since gcc thinks you won't change it. > This is possible, but it would be nicer to allow an unspecified > general register in the clobbered list. But since the functioinality is trivially available by another way, I don't think it's worth adding complexity to the compiler for this. -- Falk