[Top][All Lists]

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

[avr-libc-dev] [bug #34423] util/crc16.h: with -Os option inline functio

From: Joerg Wunsch
Subject: [avr-libc-dev] [bug #34423] util/crc16.h: with -Os option inline functions are called causing registers value loss
Date: Thu, 29 Sep 2011 04:52:23 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv: Gecko/20110902 Firefox/3.6.21

Follow-up Comment #1, bug #34423 (project avr-libc):

I don't understand that half-sentence:

``and that's why the MSB of temp is lost''

Even without inlining, the correct functionality should be

Btw., drop those pointless -f options.  If you want short
enums, use __attribute__((packed)).  Structs are packed on
the AVR anyway, as it imposes no alignment requirements.
Nobody should rely on the (un)signedness of `char', and if
you want unsigned bitfields, declare them explicitly that


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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