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:54:59 -0600

 

> -----Original Message-----
> From: Eric Weddington [mailto:address@hidden 
> Sent: Friday, April 06, 2007 9:51 AM
> To: 'Dmitry K.'; 'address@hidden'
> Cc: 'Anatoly Sokolov'; Denis Chertykov (address@hidden); 
> 'Joerg Wunsch'
> Subject: RE: [avr-gcc-list] New GCC warning - how to silence?
> 
>  
> 
> > -----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


For that matter, can we also define this target hook:

TARGET_DEFAULT_SHORT_ENUMS

And have it return true? This would also help.

Eric





reply via email to

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