Bug 24565

Summary: ICE with -mint8
Product: Sisyphus Reporter: Ivan A. Melnikov <iv>
Component: avr-gccAssignee: Grigory Milev <week>
Status: CLOSED DUPLICATE QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: viy, week
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan A. Melnikov 2010-11-15 08:09:21 MSK
Попытался воспроизвести 22295 на новом avr-gcc, получилось ещё веселее:
$ cat a.cpp
#include <avr/io.h>

int main() {
    uint8_t k=0,t=5;
    k=k+t;
}

$ avr-gcc -Wall -Werror -g -Os -S -mint8 -mmcu=atmega8535 a.cpp
<built-in>:0:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

То же самое будет если убрать все остальные аргументы кроме -mint8 и имени файла.

Система -- Сизиф от 14.11.2010, x86_64, avr-gcc-4.5.1-alt1
Comment 1 Grigory Milev 2011-01-18 13:25:32 MSK
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46261
avr-libc doesn't support that option (-mint8)
https://bugzilla.redhat.com/show_bug.cgi?id=626889
This switch is no longer maintained, see the link of my previous post.

Предлагаю не использовать данную опцию, т.к. ее поддержка для платформы AVR прикрыта.
Comment 2 Grigory Milev 2011-01-18 13:27:04 MSK

*** This bug has been marked as a duplicate of bug 24830 ***