Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154580 - gfortran compiler reports internal compiler error
Summary: gfortran compiler reports internal compiler error
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-09 10:21 UTC by Lorenzo Maccone
Modified: 2006-11-10 00:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lorenzo Maccone 2006-11-09 10:21:12 UTC
While compiling the following trivial file, the gfortran compiler reports 
fif.f: In function 'fif':
fif.f:17: error: unrecognizable insn:
(insn 90 46 48 5 (set (reg:DF 8 st [81])
        (const_double:SF 0 [0x0] 0.0 [0x0.0p+0])) -1 (nil)
    (nil))
fif.f:17: internal compiler error: in extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.

The file follows (there's also a real*8 version which surprisingly compiles well)
C*3 FIF 
C+
C Function for polar cohordinate Fi mod pigrec
C
      REAL FUNCTION FIF(Y,X)
      REAL*8 X,Y
C
C--
C 13-Feb-1991
C-----------------------------------------------------------------------
      IF (X*X+Y*Y.EQ.0.) THEN
      FIF=0.
      RETURN
      ENDIF
      FIF=ATAN2(Y,X)
      IF (FIF.LT.0.) FIF=FIF+2*3.14159265
      RETURN
      END
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-09 13:13:17 UTC
emerge --info, please.
Comment 2 Lorenzo Maccone 2006-11-10 00:32:06 UTC
The bug appeared when I tried to compile the above file with the options

gfortran -ff2c -c

Sorry, I'm not very familiar with this bug report stuff. (I'll add that I filed a bug only because the compiler asked me to. I don't really need to compile the above file which is part of a huge library which for the rest compiles almost fine).

emerge --info follows:

Gentoo Base System version 1.12.5
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
Last Sync: Thu, 09 Nov 2006 17:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa berkdb bitmap-fonts cdparanoia cli cracklib crypt cups directfb divx4linux dlloader dri dvd dvdread elibc_glibc encode f77 fame fftw fortran ftp g77 gdbm gif gnome gpm gtk iconv ifc input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kerberos kernel_linux libg++ mad mbox mmx mmx2 motif mozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pcmcia pcre perl png ppds pppd python quicktime readline reflection session spl ssl tcltk tcpd tetex truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vorbis win win32codecs xemacs xine xinerama xinetd xorg xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY