[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #36410] avr/boot.h: poisoned SPMCR for ATmega128

From: Axel Wachtler
Subject: [avr-libc-dev] [bug #36410] avr/boot.h: poisoned SPMCR for ATmega128
Date: Sun, 06 May 2012 09:00:06 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv: Gecko/20111107 Ubuntu/10.10 (maverick) Firefox/3.6.24


                 Summary: avr/boot.h: poisoned SPMCR for ATmega128
                 Project: AVR C Runtime Library
            Submitted by: awachtler
            Submitted on: So 06 Mai 2012 09:00:05 GMT
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.8.0
           Fixed Release: None



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:
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.


Reply to this item at:


  Nachricht gesendet von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]