public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27369]  New: tree check ICE when attribute externally_visible used
@ 2006-05-01 14:38 gcc-bugzilla at gcc dot gnu dot org
  2006-05-01 14:40 ` [Bug c++/27369] " ned at bike-nomad dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2006-05-01 14:38 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-01-05 19:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-01 14:38 [Bug c++/27369] New: tree check ICE when attribute externally_visible used gcc-bugzilla at gcc dot gnu dot org
2006-05-01 14:40 ` [Bug c++/27369] " ned at bike-nomad dot com
2006-05-01 15:38 ` pinskia at gcc dot gnu dot org
2006-05-02  6:56 ` pinskia at gcc dot gnu dot org
2006-05-02  6:58 ` [Bug c++/27369] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-05-02  7:01 ` pinskia at gcc dot gnu dot org
2006-05-02  7:02 ` pinskia at gcc dot gnu dot org
2006-05-02 18:19 ` janis at gcc dot gnu dot org
2006-06-04 18:41 ` mmitchel at gcc dot gnu dot org
2006-06-07 15:18 ` [Bug c++/27369] [4.1/4.2 " rguenth at gcc dot gnu dot org
2006-06-26 22:16 ` jason at gcc dot gnu dot org
2006-07-12 15:46 ` reichelt at gcc dot gnu dot org
2006-07-21  8:39 ` mmitchel at gcc dot gnu dot org
2006-07-21 15:13 ` hubicka at ucw dot cz
2006-07-23 10:15 ` patchapp at dberlin dot org
2006-07-24  0:16 ` hubicka at gcc dot gnu dot org
2007-01-05 19:44 ` [Bug c++/27369] [4.1 " rguenth at gcc dot gnu dot org
2007-01-05 19:45 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).