mpc83xx.h compile error

Joel Sherrill joel.sherrill at OARcorp.com
Fri May 16 18:59:03 UTC 2008


Thomas Doerfler wrote:
> Joel,
>
>
> Joel Sherrill schrieb:
>   
>> Tracked down to this line in mpc83xx.h:
>>
>>     volatile uint32_t or;                 /* 0x0_5004 Options register 0
>> R/W 0x0000_0FF7 10.3.1.2/10-12 */
>>
>> And this #define in iso646.h from gcc I think:
>>
>>
>> #define or      ||
>>
>> I assume the name of the structure member needs to change.
>>     
>
> Sigh. Who has come to the idea to create such a "define" and occupy this
> identifier in such a stupid way!
> .
>   
The .h file name says it all -- iso646.h.

>> Any one using that field?  Or can I just rename it to
>> "optionsr" and fix the resulting compile errors?
>>
>>
>>     
> But the relevant register will only be used on assembly level currently,
> so renaming it to "oreg" schould not harm anybody.
>
>   
OK.  Just checking
> wkr,
> Thomas.
>
>
>
> --
> --------------------------------------------
> embedded brains GmbH
> Thomas Doerfler           Obere Lagerstr. 30
> D-82178 Puchheim          Germany
> Tel. : +49-89-18 90 80 79-2
> Fax  : +49-89-18 90 80 79-9
> email: Thomas.Doerfler at embedded-brains.de
> PGP public key available on request
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list