[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?
From: |
Vincent Trouilliez |
Subject: |
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ? |
Date: |
Fri, 20 Feb 2009 10:41:37 +0100 |
On Fri, 20 Feb 2009 08:03:52 +0100 (MET)
address@hidden (Joerg Wunsch) wrote:
> Vincent Trouilliez <address@hidden> wrote:
> > lcd.c:96: error: »asm« undeclared (first use in this function)
>
> That's because you are using a -std setting the prevents GCC from
> using its extensions by a name ("asm") that is in the application name
> space, like -std=c99. Either use -std=gnu99, or (as you already did)
> use the implementation namespace counterpart __asm__.
>
> --
> cheers, J"org
You are a magician Joerg.. how could you know ! ;-)
Yes indeed, 2 weeks ago I added the --std=c99 flag to my makefile, as
advised by the avr-libc manual, in order to get the ATOMIC_BLOCK()
macro to work !
Using gnu99 fixed the problem indeed, thanks ! :-)
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?, Ruud Vlaming, 2009/02/19
Re: [avr-gcc-list] How to force GCC to not to remove "nop" statements ?, Parthasaradhi Nayani, 2009/02/19