avr-libc-dev
[Top][All Lists]
Advanced

[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:1.9.2.21) 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
achieved.

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
way.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?34423>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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