simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] [bug #35737] new awr-gcc is picky about depreciated con


From: anonymous
Subject: [Simulavr-devel] [bug #35737] new awr-gcc is picky about depreciated constants
Date: Mon, 12 Mar 2012 12:53:45 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

Follow-up Comment #2, bug #35737 (project simulavr):

Hi,
I decided to add some small comments to my previous post.

Most of the changes, that I do, are "self-explanatory". You will get an
"error: attempt to use poisoned SOME_MAGIC_NAME" if you do not apply them.

However, there are some changes in the "atmel_key" example which may need some
additional explanation.

In the "./examples/atmel_key/main.c" file I replace the call to "msleep" with
"_delay_ms", and in the "./examples/atmel_key/StdDefs.c" file I comment out
the call to "_delay_ms" (in the "msleep" implementation - this makes this
function unusable - it's "dummy" then - but it was ONLY used in one place in
the "./examples/atmel_key/main.c" file, which I also patched).
The reason is that the "_delay_ms" accepts ONLY constant parameters, no
variable parameters are allowed in the call. If you do not apply these
changes, you will get "/.../avr/.../4.5.1/.../include/util/delay.h:164:28:
error: __builtin_avr_delay_cycles expects an integer constant."

Hope it helps.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?35737>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]