[PATCH] Pass -mtune and -march options to assembler.
Valdimir Volynsky
vvv@ru.ru
Wed May 27 08:04:00 GMT 2009
Paul Brook <paul@codesourcery.com> wrote:
> Having assembler behavior depend on the contents of a
>comment sounds like a truly terrible idea to me.
Comments used by GCC for change assembler behavior.
Quote from gcc/doc/tm.texi
@defmac ASM_APP_ON
A C string constant for text to be output before each
@code{asm}
statement or group of consecutive ones. Normally this is
@code{"#APP"}, which is a comment that has no effect on
most
assemblers but tells the GNU assembler that it must check
the lines
that follow for all valid assembler constructs.
@end defmac
@defmac ASM_APP_OFF
A C string constant for text to be output after each
@code{asm}
statement or group of consecutive ones. Normally this is
@code{"#NO_APP"}, which tells the GNU assembler to resume
making the
time-saving assumptions that are valid for ordinary
compiler output.
@end defmac
Quote from gcc/ada/gnat_ugn.texi :
The assembly code you included is clearly indicated by
the compiler, between the @code{#APP} and @code{#NO_APP}
delimiters. The character before the 'APP' and 'NOAPP'
can differ on different targets. For example, GNU/Linux
uses '#APP' while
on NT you will see '/APP'.
Vladimir.
---
Professional hosting for everyone - http://www.host.ru
More information about the Gcc-patches
mailing list