URL: <http://savannah.nongnu.org/bugs/?29280>
Summary: Illegal opcode for at90usb162 if optimizations enabled Project: AVR C Runtime Library Submitted by: havier Submitted on: Sun 21 Mar 2010 08:49:05 AM GMT Category: Build Infrastructure Severity: 3 - Normal Priority: 5 - Normal Item Group: Build system Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.4.7 Fixed Release: None _______________________________________________________ Details: 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 _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sun 21 Mar 2010 08:49:05 AM GMT Name: bugrprt.c Size: 390B By: havier <http://savannah.nongnu.org/bugs/download.php?file_id=19992> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?29280> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev