Bug 107035 - [avr] internal compiler error: in add_clobbers, at config/avr/avr-dimode.md
Summary: [avr] internal compiler error: in add_clobbers, at config/avr/avr-dimode.md
Status: RESOLVED DUPLICATE of bug 105753
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 12.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-25 21:30 UTC by Petr Kovar
Modified: 2022-09-25 21:45 UTC (History)
0 users

See Also:
Host:
Target: avr
Build:
Known to work: 11.1.0
Known to fail: 12.1.0, 12.2.0
Last reconfirmed:


Attachments
Preprocessed source, compiler command lines and err. output (43.70 KB, application/x-zip-compressed)
2022-09-25 21:30 UTC, Petr Kovar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Kovar 2022-09-25 21:30:49 UTC
Created attachment 53626 [details]
Preprocessed source, compiler command lines and err. output

Hello, I would like to report an repeatable internal compiler error outputs with AVR-GCC 12.2.0 (and 12.1.0 too):



during RTL pass*: combine
 
Print.cpp: In function print.constprop.isra
 
Print.cpp:112: internal compiler error  in add_clobbers, at config\avr\avr-dimode.md
   112 | }
   | ^
   libbacktrace could not find executable to open
   Please submit a full bug report, with preprocessed source (by using -freport-bug)
   gcc.gnu.org\bugs\> for instructions
 
lto-wrapper.exe*: fatal error: C:\Users\kovar\AppData\Local\arduino15\packages\arduino\tools\avr-gcc\avr-gcc-12.2.0-x86-windows\bin\avr-gcc returned 1 exit status
   compilation terminated




In opposite, I tested AVR-GCC 11.1 on the same source code with NO ERROR result.



I'm attaching preprocessed source code and command line invocations with compiler output.



Development env. platform: Windows 11
Target: AVR

avr-gcc -v  output:

Using built-in specs.
Reading specs from c:/users/kovar/appdata/local/arduino15/packages/arduino/tools/avr-gcc/avr-gcc-12.2.0-x86-windows/bin/../lib/gcc/avr/12.2.0/device-specs/specs-avr2
COLLECT_GCC=avr-gcc
COLLECT_LTO_WRAPPER=c:/users/kovar/appdata/local/arduino15/packages/arduino/tools/avr-gcc/avr-gcc-12.2.0-x86-windows/bin/../libexec/gcc/avr/12.2.0/lto-wrapper.exe
Target: avr
Configured with: ../configure --prefix=/omgwtfbbq/avr-gcc-12.2.0-x86-windows --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --disable-libada --with-dwarf2 --disable-shared --enable-static --enable-mingw-wildcard --enable-plugin --with-gnu-as --host=i686-w64-mingw32 --build=x86_64-pc-linux-gnu
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 12.2.0 (GCC)



Thanks,


Petr
Comment 1 Andrew Pinski 2022-09-25 21:45:20 UTC
Dup of bug 105753.

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