This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C99 spelling of "asm".
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: David O'Brien <obrien at FreeBSD dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 12 Jun 2003 17:34:24 -0700
- Subject: Re: C99 spelling of "asm".
- Organization: Wasabi Systems, Inc.
- References: <20030602161903.GA89358@dragon.nuxi.com>
On Mon, Jun 02, 2003 at 09:19:03AM -0700, David O'Brien wrote:
> asm ( 'character-string-literal' ) ;
>
> However, I get this error:
>
> testasm.c: In function `main':
> testasm.c:4: warning: implicit declaration of function `asm'
> testasm.c:4: syntax error before ':' token
>
> changing "asm" to "__asm" or using "-std=gnu99 -pedantic" works. Has GCC
> not caught up with iso9899:1999, or is there some other reason "asm();"
> isn't accepted?
C99 doesn't support the extended-asm syntax, right? That's probably
what you're bumping into.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>