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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Axel Wachtler <awachtler>
Submitted:  Sun 06 May 2012 09:00:05 AM UTC
Votes: 1
 
Category:  Header Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Header files
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Closed
Release:  1.8.0 Fixed Release:  1.8.1

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

Fixed in r2403.

Joerg Wunsch <joerg_wunsch>
Group administrator
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.)

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
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-08 joerg_wunsch StatusNone Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.8.1
    2012-11-16 arcanum Priority5 - Normal 9 - Immediate
    2012-08-17 demiurg_spb Carbon-Copy- Added demiurg_spb
    2012-05-06 awachtler Carbon-Copy- Added awachtler

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code