bugAVR C Runtime Library - Bugs: bug #58862, avr/wdt.h LLVM11 error for...

 
 

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

Submitted by:  Kim <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% Open/Closed:  Open
Release:  2.0.0 Fixed Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 31 Jul 2020 11:32:44 AM UTC, original submission:  

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.

Kim <kimstik>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by kimstik (Submitted the item)
  •  

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5