bugAVR C Runtime Library - Bugs: bug #29280, Illegal opcode for at90usb162 if...

 
 

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

bug #29280: Illegal opcode for at90usb162 if optimizations enabled

Submitter:  Gabriel Csefalvay <havier>
Submitted:  Sun 21 Mar 2010 08:49:05 AM UTC
   
 
Category:  Build Infrastructure Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build system
Status:  Invalid Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Closed
Release:  1.4.7 Fixed Release:  None

Sun 21 Mar 2010 02:13:09 PM UTC, comment #1: 

The code is generated by the compiler rather than the library,
so if at all, this must be a compiler bug.

However, I notice you're using an ancient compiler version,
probably even one without patches.  Your code compiles fine
with a current, patched compiler.

Please look at:

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=42631

for a script that can generate you a known to work compiler.

Joerg Wunsch <joerg_wunsch>
Group administrator
Sun 21 Mar 2010 08:49:05 AM UTC, original submission:  


The compiler exits with the msg "Error: illegal opcode mul for mcu at90usb162", when I run the following command:

$avr-gcc -mmcu=at90usb162 -Os -Wa,-adhlms=bugrprt.lst  bugrprt.c -o bugrprt.o

The sample C code is attached. Using -O0 it compiles ok.


info:

version.h
#define _AVR_LIBC_VERSION_        10407UL

$avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --disable-libssp --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=avr
Thread model: single
gcc version 4.2.2

Gabriel Csefalvay <havier>

 

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

Attached Files
file #19992:  bugrprt.c added by havier (390B - application/octet-stream)

 

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 havier (Submitted the item)
  •  

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-21 joerg_wunsch StatusNone Invalid
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2010-03-21 havier Attached File- Added bugrprt.c, #19992

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code