X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: 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: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/