bugAVR C Runtime Library - Bugs: bug #36410, avr/boot.h: poisoned SPMCR for...


bug #36410: avr/boot.h: poisoned SPMCR for ATmega128

Submitted by:  Axel Wachtler <awachtler>
Submitted on:  Sun 06 May 2012 09:00:05 AM UTC  
Votes:  1  
Category: HeaderSeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: Header files
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: 1.8.0Fixed Release: 1.8.1

Add a New Comment(Rich Markup)

You are not logged in

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


Sat 08 Jun 2013 08:59:48 AM UTC, comment #1:

Fixed in r2403.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Sun 06 May 2012 09:00:05 AM UTC, original submission:

If avr/boot.h is just included in a source file and the file is compiled for atmega128, the compiler raises an error.

Here are the steps to reproduce the issue:
$ cat foo.c
#include <avr/version.h>
#include <avr/boot.h>

$ avr-gcc -c -mmcu=atmega128 foo.c
In file included from foo.c:2:0:
/home/myavrtools/avr-gcc470/lib/gcc/avr/4.7.0/../../../../avr/include/avr/boot.h:112:16: error: attempt to use poisoned "SPMCR"

$ avr-gcc -c -mmcu=atmega1281 foo.c
For atmega1281 it works with no error.

My compiler is either avr-gcc 4.5.1 or 4.7.0, both compilers use
avr-libc 1.8.0

For avr-gcc 4.3.5 with an avr-libc 1.6.8 the above example works.

Axel Wachtler <awachtler>


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

Attach File(s):

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 joerg_wunsch (Posted a comment)
  • -email is unavailable- added by arcanum (Updated the item)
  • -email is unavailable- added by demiurg_spb (Voted in favor of this item)
  • -email is unavailable- added by awachtler (Submitted the item)
  • -email is unavailable- added by awachtler

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 08 Jun 2013 08:59:48 AM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Fixed ReleaseNone=>1.8.1
    Fri 16 Nov 2012 06:22:04 PM UTCarcanumPriority5 - Normal=>9 - Immediate
    Fri 17 Aug 2012 11:09:01 AM UTCdemiurg_spbCarbon-Copy-=>Added demiurg_spb
    Sun 06 May 2012 09:00:05 AM UTCawachtlerCarbon-Copy-=>Added awachtler

    Back to the top

    Powered by Savane 3.1-cleanup1