| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <BLU119-W440E3023DD8E9AB6464CF6DDD60 AT phx DOT 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 |
| X-Mailer: | Microsoft Office Outlook 11 |
| In-Reply-To: | <BLU119-W440E3023DD8E9AB6464CF6DDD60@phx.gbl> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |