cvs commit: src/sys/i386/include profile.h

David O'Brien obrien at FreeBSD.org
Mon Jun 2 09:14:04 PDT 2003


On Mon, Jun 02, 2003 at 10:56:15AM +0200, Dag-Erling Smorgrav wrote:
> "David E. O'Brien" <obrien at FreeBSD.org> writes:
> >   Log:
> >   Use C99 compatable asm statements.
> 
> Wrong.  The keyword reserved by C99 for inline assembly is asm, not
> __asm.

    J.5.10 _The_asm_keyword_

    The 'asm' keyword may be used to insert assembly language directly
    into the translator output (6.8).  The most common implementation is
    via a statement of the form:

        asm ( 'character-string-literal' ) ;

my read is that the compiler *may* implement it as above, or it may use
something different.  Since GCC uses
    <asm keyword> ("character-string-literal" : <constraint> : <constraint> );
I guess they decided GCC isn't compatable with J.5.10.

-- 
-- David  (obrien at FreeBSD.org)


More information about the cvs-all mailing list