avr-gcc-list
[Top][All Lists]
Advanced

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

RE: [avr-gcc-list] New GCC warning - how to silence?


From: Eric Weddington
Subject: RE: [avr-gcc-list] New GCC warning - how to silence?
Date: Fri, 06 Apr 2007 09:51:11 -0600

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Dmitry K.
> Sent: Friday, April 06, 2007 1:29 AM
> To: address@hidden
> Subject: Re: [avr-gcc-list] New GCC warning - how to silence?
> 
> It is interesting, what was a reason to declare
> default char as signed for AVR port?
> 
> Many other GCC ports use unsigned.
> I find only one CPU that is suitable for such
> choice: PDP-11, where the shortest method to read
> memory (mov_byte_from_memory_to_register) expands
> a sign bit.

I found it in avr.h of the port:

#define DEFAULT_SIGNED_CHAR 1

So this means that the AVR defaults to a signed char. Can we change this to
be unsigned?:

#define DEFAULT_SIGNED_CHAR 0

Eric Weddington





reply via email to

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