The following code example crashes g77 (segmentation fault) when invoked with the option "-finit-local-zero": PROGRAM TEST COMPLEX CZERO(1) END Use this command to trigger the error: g77 -c -finit-local-zero test.f On some code, using -fno-automatic fixes the problem, but not on the example above. For details on g77: $ g77 --version GNU Fortran (GCC) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) Copyright (C) 2002 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING or type the command `info -f g77 Copying'. # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.12-gentoo-r9-custom i686) ================================================================= System uname: 2.6.12-gentoo-r9-custom i686 Intel(R) Pentium(R) M processor 2.13GHz Gentoo Base System version 1.6.13 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-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.gentoo.org/gentoo-distfiles/ http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="x86 7zip X a52 aac accessibility alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdda cdparanoia cdr cpudetection crypt cscope css cups curl cvs dbus directfb doc dts dv dvb dvd dvdr dvdread eds emboss encode esd exif fam fame firebird firefox flac fmod fontconfig fontserver foomaticdb fortran fpx gd gdbm gif gnome gphoto2 gpm graphvis gstreamer gtk gtk2 gzip hal ieee1394 imagemagick imlib java jbig jp2 jpeg jpeg2k kde libg++ libwww logrotate lzo mad matroska mikmod mjpeg mmx mng motif mp3 mpeg mplayer mysql ncurses nls nptl nptlonly odbc ogg oggvorbis opengl oss pam pdflib perl php png postgres python qt quicktime readline real samba sdl sndfile spell sse sse2 ssl subtitles subversion svg svga tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts udev usb vcd vidix vorbis win32codecs wmf xanim xine xml2 xmms xv xvid yv12 zip zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS Reproducible: Always Steps to Reproduce: 1. Create a simple test file such as test.f: PROGRAM TEST COMPLEX CZERO(1) END 2. Compile it with g77 using -finit-local-zero 3. Observe the sermentation fault Actual Results: $ g77 -c -finit-local-zero test.f test.f: In program `test': test.f:3: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Expected Results: Uh, well, not crash for one thing ;-)
Keeping this open isn't doing us any good. Waiting on the upstream patch, so marking this as later.