When compiling xorg-server with GCC 4.3.1 I get a segmentation fault, with this relevant messages: texenvprogram.c: In function 'emit_combine': texenvprogram.c:739: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. This is my gcc -v: LANG=C gcc -v Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-cld --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.1 p1.0' Thread model: posix gcc version 4.3.1 (Gentoo 4.3.1 p1.0) I tried several times, with the same result, so it's unlikely that this is a hardware problem. Reproducible: Always Steps to Reproduce: 1. Use ~amd64 GCC 4.3.1 2. emerge -1 =x11-base/xorg-server-1.4.2 My emerge --info: Portage 2.1.5.4 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64) ================================================================= System uname: 2.6.25-gentoo-r4 x86_64 Genuine Intel(R) CPU 2160 @ 1.80GHz Timestamp of tree: Wed, 11 Jun 2008 20:06:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -march=native -pipe -mmmx -msse2 -msse3 -msse -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -ftree-vectorize -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/openldap /etc/openoffice /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/profile.d /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /etc/wget" CXXFLAGS="-O3 -march=native -pipe -mmmx -msse2 -msse3 -msse -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -ftree-vectorize -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://darkstar.ist.utl.pt/gentoo/" LANG="es_ES.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" LINGUAS="es" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac alsa amarok amd64 apache2 apm asf audiofile bash-completion berkdb binary-drivers bootsplash browserplugin bzip2 cdparanoia cli cracklib crypt css cups curl dbus dri dvd dvdr dvdread ecc emacs emerald encode extrafilters ffmpeg fftw flac fortran gd gdbm gif gimp gimpprint glitz gmail gpm hal iconv idn imagemagick ipod isdnlog java java5 jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdepim latex lcms libwww lm_sensors logrotate matroska midi mmx mmx2 mmxext mng mp2 mp3 mp4 mplayer mpm-event mudflap ncurses nls no-old-linux nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl php png postgres povray python qt3 qt4 readline reflection rtc scanner sensord session smime sms spl sse sse2 ssl subversion svg tcpd tetex theora threads tiff toolkit-scroll-bars truetype unicode usb userlocales visualization vorbis x264 xcb xcomposite xine xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 156417 [details] Ebuild environment file
Created attachment 156419 [details] Complete build log
Created attachment 156423 [details] The preprocessed source
If I remove -fprefetch-loop-arrays, it compiles all right. It also works all right if I keep -fprefetch-loop-arrays but downgrade the optimization to -O2.
Comment on attachment 156423 [details] The preprocessed source To make it crash: gcc -O3 -fprefetch-loop-arrays -c texenvprogram.i
seems to be gcc-4.3 regression ... works with older versions
Created attachment 156443 [details] texenvprogram.i reduced test case
Just mention that qt-webkit causes this same ICE.
Created attachment 161893 [details, diff] gcc-4.3.2-PR36504.patch
this is already part of gcc-4.3.2 mainline