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

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

Re: [avr-gcc-list] avr-gcc 4.3.3 : enum definition/use order has side ef


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] avr-gcc 4.3.3 : enum definition/use order has side effects on -fshort-enums
Date: Thu, 16 Jun 2011 08:03:04 +0200 (MET DST)

Bernard Fouché <address@hidden> wrote:

> In the first case, the enumeration is referenced before the
> enumeration definition: 'xyz' is sizeof(int) bytes wide

Sure: the compiler has no chance to tell it better in that case, as it
hasn't seen the enum definition.  Thus, its only chance is to assume
the enum takes a full `int'.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

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