When compiling a C++ program (for the AVR target) that defines interrupt vectors using the externally_visible attribute, I get this ICE message:
avrlib/bits/atmega128_usart.cpp:20: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'omp_atomic' in eq_node, at cgraph.c:175 Environment: System: Darwin Neds-Mini.local 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc host: powerpc-apple-darwin8.6.0 build: powerpc-apple-darwin8.6.0 target: avr-unknown-none configured with: /opt/local/var/db/dports/build/_Users_ned_src_darwinports_dports_cross_avr-gcc/work/gcc-4.2-20060429/configure --prefix=/opt/local --infodir=/opt/local/share/info --mandir=/opt/local/share/man --target=avr --program-prefix=avr- --with-included-gettext --enable-obsolete --with-gxx-include-dir=/opt/local/avr/include/c++/4.2-20060429/ --disable-libssp --enable-languages=c,c++ How-To-Repeat: Compile the attached hw.ii file with: avr-g++ -fno-exceptions -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ggdb -O2 -Wall -Wextra -Wshadow -mmcu=atmega128 -xc++ -c -o hw.o hw.ii ------- Comment #1 from ned at bike-nomad dot com 2006-05-01 14:38 ------- Fix: Remove the externally_visible attributes on the vector definitions (lines 1998 to 2020) in attached file hw.ii and recompile: sed -e '1998,2020s/, externally_visible//' hw.ii > hwgood.cpp avr-g++ -fno-exceptions -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -ggdb -O2 -Wall -Wextra -Wshadow -mmcu=atmega128 -xc++ -c -o hwgood.o hwgood.cpp -- Summary: tree check ICE when attribute externally_visible used Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ned at bike-nomad dot com GCC build triplet: powerpc-apple-darwin8.6.0 GCC host triplet: powerpc-apple-darwin8.6.0 GCC target triplet: avr-unknown-none http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27369