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

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

[avr-libc-dev] [bug #36611] _delay_loop_2 must not use constraint "w" wi


From: Georg-Johann Lay
Subject: [avr-libc-dev] [bug #36611] _delay_loop_2 must not use constraint "w" with all targets
Date: Fri, 08 Jun 2012 22:36:28 +0000
User-agent: Opera/9.80 (Windows NT 5.0; U; de) Presto/2.6.30 Version/10.63

URL:
  <http://savannah.nongnu.org/bugs/?36611>

                 Summary: _delay_loop_2 must not use constraint "w" with all
targets
                 Project: AVR C Runtime Library
            Submitted by: gjlayde
            Submitted on: Fr 08 Jun 2012 22:36:27 GMT
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
           Fixed Release: None

    _______________________________________________________

Details:

./include/util/delay_basic.h

implements:

void
_delay_loop_2(uint16_t __count)
{
        __asm__ volatile (
                "1: sbiw %0,1" "\n\t"
                "brne 1b"
                : "=w" (__count)
                : "0" (__count)
        );
}

This won't work for tiny tiny targets because

- they don't have SBIW
- compiler with suprt for these targets empty the register
  class associated with "w".  Thus, the compiler will throw
  an error if it sees "w".







    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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