This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] PR33932 - extend documentation about top-level asm blocks


On Mon, Dec 29, 2008 at 9:30 PM, Mark Mitchell <mark@codesourcery.com> wrote:
> Steven Bosscher wrote:
>
> Thanks for working on this.
>
>> +optimize.  Similarly, calls to labels defined in an @code{asm} block are
>> +not supported.
>
> Aren't they supported provided that you use the code section directives?
>  Your example looks like a call to such a label to me.  So, I suspect
> you're saying something meaningful, but I'm failing to understand it. :-)

No,  the example shows that you can give a name to a C function, and
that name happens to be an assembler label.  There is no actual call
to the label in the example.

> Note: both the choice of section and the directives that you should use
> to indicate to the assembler that your code goes in a particular section
> depend on your assembly code, your assembler, and your target operating
> system.

I will add this.

Gr.
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]