Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117818 - Initialization of structure causes GCC internal compiler error: in tree_low_cst, at tree.c:3253
Summary: Initialization of structure causes GCC internal compiler error: in tree_low_c...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-04 20:14 UTC by Matt Van Gundy
Modified: 2006-01-04 20:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Minimal test case exhibiting bug (Constraints_minimal.ii,213 bytes, text/plain)
2006-01-04 20:15 UTC, Matt Van Gundy
Details
Minimal change to test case to allow compilation (Constraints_minimal_working.ii,120 bytes, text/plain)
2006-01-04 20:16 UTC, Matt Van Gundy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Van Gundy 2006-01-04 20:14:18 UTC
Overview:
Compilation of the attached file Constraints_minimal.ii yeilds the error noted above.  Essentially, I was trying to create a hierarchy of structures and variables to handle constraints in a sysctl-like manner.  I've attempted to pair down the problem sourcecode to a minimal set to exercise the problem.  I've removed all headers and reduced the structure definition considerably.  As can be seen by the differences between Constraints_minimal.ii and Constraints_minimal_working.ii, containing the array within a struct appears to provoke the compiler bug.

Reproducible:
Always

Steps to Reproduce:
1) g++ -c -o Constraints_minimal.o Constraints_minimal.ii

Actual Results:
Constraints_minimal.ii:8: internal compiler error: in tree_low_cst, at tree.c:3253
Please submit a full bug report,with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /tmp/ccWfDT34.out file, please attach this to your bugreport.

Expected Results:
Successful compile generating .o file.

Output of gcc -v:
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/specs
Configured with: /var/tmp/portage/gcc-3.3.6/work/gcc-3.3.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.6 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.6/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)

Output of emerge --info:
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r10 i686)=================================================================
System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(TM)Processor
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.binarycompass.org"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aim alsa arts audiofile avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 bzlib cdr crypt cups curl divx4linux dvd eds emacs emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile icq idn imagemagick imap imlib ipv6 jack java jpeg junit kde lcms ldap libg++ libwww mad mikmod mime mmx mng motif mozilla mp3 mpeg ncurses nls offensive ogg oggvorbis openal opengl oscar oss pam pcre pdflib perl png python qt quicktime readline recode ruby samba scanner sdl slang spell ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis xine xml xml2 xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Matt Van Gundy 2006-01-04 20:15:44 UTC
Created attachment 76208 [details]
Minimal test case exhibiting bug
Comment 2 Matt Van Gundy 2006-01-04 20:16:16 UTC
Created attachment 76209 [details]
Minimal change to test case to allow compilation
Comment 3 SpanKY gentoo-dev 2006-01-04 20:18:30 UTC
3.4.x works correctly and seeing as how that's our stable version ...