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:  Header Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  Header files
Status:  Fixed Percent Complete:  0%
Assigned to:  Joerg Wunsch <joerg_wunsch> Open/Closed:  Closed
Release:  1.8.0 Fixed 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 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 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.3