[bug #58862] avr/wdt.h LLVM11 error for atmega328p

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[bug #58862] avr/wdt.h LLVM11 error for atmega328p

Kevin Cuzner-2
URL:
  <https://savannah.nongnu.org/bugs/?58862>

                 Summary: avr/wdt.h LLVM11 error for atmega328p
                 Project: AVR C Runtime Library
            Submitted by: kimstik
            Submitted on: Fri 31 Jul 2020 11:32:44 AM UTC
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
             Assigned to: None
        Percent Complete: 0%
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 2.0.0
           Fixed Release: None

    _______________________________________________________

Details:

Error message:

avr\include\avr/wdt.h:419:12: error: value '64' out of range for constraint
'I'
                                : "I" (_SFR_IO_ADDR(_WD_CONTROL_REG)),
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
avr\include\avr/sfr_defs.h:183:27: note: expanded from macro '_SFR_IO_ADDR'
#define _SFR_IO_ADDR(sfr) (_SFR_MEM_ADDR(sfr) - __SFR_OFFSET)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-------------------
I guess that wdt_enable()/wdt_disable() should have conditional preprocessor
code instead of conditional inline.




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?58862>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/