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

 
 

bug #29280: Illegal opcode for at90usb162 if optimizations enabled

Submitted by:  Gabriel Csefalvay <havier>
Submitted on:  Sun 21 Mar 2010 08:49:05 AM UTC  
 
Category: Build InfrastructureSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Build system
Status: InvalidPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: 1.4.7Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by havier (Submitted the item)
  •  

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

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 21 Mar 2010 02:13:09 PM UTCjoerg_wunschStatusNone=>Invalid
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed
    Sun 21 Mar 2010 08:49:05 AM UTChavierAttached File-=>Added bugrprt.c, #19992

    Back to the top


    Powered by Savane 3.1-cleanup1