X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
References: <BLU119-W440E3023DD8E9AB6464CF6DDD60@phx.gbl>
Subject: RE: '%=' invalid? (inline assembly)
Date: Tue, 6 May 2008 18:39:48 +0100
Message-ID: <045401c8afa0$2e51f390$2708a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <BLU119-W440E3023DD8E9AB6464CF6DDD60@phx.gbl>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Cristiano Di Buduo wrote on 06 May 2008 18:16:

> Hi, i'm porting a project to gcc, and it heavily relies on inline
> assembly. 
> 
> I have some inline functions that, when optimized, generate duplicate
> labels. So i read through the docs, and stumbled upon the %=
> functionality. 

  You must have been reading the gcc internals manual.

> I couldn't find more in-depth info, so i fgrepped the gcc source tree.
> 
> But to no avail...
> I already tried the gcc mailing list, no response:
> 
> Why does '%=' not work in code directly copied from the gcc sources?

  The stuff in .md files is not inline assembly and cannot be understood by
GCC (or any other C compiler) directly.  It is a plain text format that is
parsed by various utility programs that are built as part of the gcc build
process and that emit autogenerated C files that handle the cpu-dependent
parts of the assembly generation process.  The "output templates" that are in
the .md files contain many kinds of syntax that cannot be used in inline
assembly, and "%=" is one of those. 


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

