-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Grant Edwards wrote:
> On 2006-03-18, Brian C. Lane <b...@brianlane.com> wrote:
>> Grant Edwards wrote:
>>> I'm trying to figure out how to exit from low power mode.
>>> According to the manual, the _BIC_SR_IRQ() macro does what I
>>> want, but I can't get it to compile without a warning.  Isn't
>>> there a way to do it that doesn't generate compiler warnings?
>>>
>>> I don't ship code that wonn't compile without warnings.
>>>
>> What's the warning look like?
> 
>   hdlc.c:159: warning: concatenation of string literals with __FUNCTION__ is 
> deprecated
> 
> The compiler doesn't like the string concatenation in the asm
> statement in iomacros.h:
> 
> #define _BIC_SR_IRQ(x)\
>     __asm__ __volatile__ (\
>         "bic %0, .L__FrameOffset_" __FUNCTION__ "(r1)"\
>         : : "i" ((uint16_t)x)\
>     )
> 
>> I used:
>>
>> _BIC_SR_IRQ(LPM0_bits);
>>
>> in my onelock project and don't remember a problem with it.
> 
> Are you using gcc 4.x?  With gcc4, the above macro isn't used,
> but rather a built-in function that has been added to gcc itself.
> 

I was using the install from http://cdk4msp.sourceforge.net/, I don't
think it uses 4.x yet.

Brian


- --
- ---[Office 70.1F]--[Fridge 33.2F]---[Server 78.6F]--[Coaster 68.7F]---
Linux Software Developer                     http://www.brianlane.com

"We are all prisoners, holding our own keys" -- Phillipe the Mouse
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Remember Lexington Green!

iD4DBQFEHDv7Iftj/pcSws0RArQsAJ9poVBpakg0z8pXTlQBzBHpLWGQWACVHGgQ
+bHPUiFmi8oRPT/Kwyh+Zg==
=13Mo
-----END PGP SIGNATURE-----

Reply via email to