[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] SPMCR poisoning workaround for ATmega128
From: |
John Beard |
Subject: |
[avr-libc-dev] SPMCR poisoning workaround for ATmega128 |
Date: |
Thu, 30 May 2013 16:05:51 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
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] SPMCR poisoning workaround for ATmega128,
John Beard <=