Hi,

I have run in bug #36410 while trying to compile for a mega128:

    In file included from main.c:13:0:
    /usr/lib/gcc/avr/4.7.0/../../../avr/include/avr/boot.h:112:16: error: 
attempt to use poisoned "SPMCR"

The poisoning is in iom128.h, line 1246:
    
    #pragma GCC poison SPMCR 

I know this is in the bug tracker, but I was wondering how best to patch my 
local code for now. I could remove the poison from iom128.h, toggle 
__AVR_LIBC_DEPRECATED_ENABLE__ (but also unpoison everything else), or 
define out the check in boot.h for this device.

Which of these (or some other alternative) is most advisable?

Best regards,

John

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to