Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94563 - GCC 3.4.4 ICE in libperl and libsndfile with CFLAGS=-O1
Summary: GCC 3.4.4 ICE in libperl and libsndfile with CFLAGS=-O1
Status: RESOLVED DUPLICATE of bug 79852
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-30 16:19 UTC by Christophe C
Modified: 2005-05-31 16:47 UTC (History)
0 users

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


Attachments
Preprocessed source as given by gcc (cccJ96F6.out,302.91 KB, application/octet-stream)
2005-05-30 16:22 UTC, Christophe C
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe C 2005-05-30 16:19:12 UTC
gcc-3.4.4 ICEs while compiling the file 'numeric.c' in libperl-5.8.5 with the
CFLAG '-O1' set. Without this flag, it compiles the whole package fine.


Reproducible: Always
Steps to Reproduce:
1. emerge =sys-devel/gcc-3.4.4
2. set CFLAGS="-O1"
3. emerge =sys-devel/libperl-5.8.5
4. set CFLAGS=""
5. emerge =sys-devel/libperl-5.8.5


Actual Results:  
In step 3, gcc ICEs in numeric.c :
"`sh  cflags "optimize='-pipe -O1'" numeric.o` -fPIC numeric.c
          CCCMD =  i686-pc-linux-gnu-gcc -DPERL_CORE -c -fno-strict-aliasing
-pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe -O1  -Wall
numeric.c: In function `S_mulexp10':
numeric.c:787: internal compiler error: in try_split, at emit-rtl.c:3343"

In step 5, the file compiles fine.

Expected Results:  
Compile both ;)

- libperl compiles fine with gcc-3.3.5-r1 with -O1.

- it still ICEs with gcc vanilla profile on gcc-3.4.4 with -O1

emerge info :
Portage 2.0.51.19 (hardened/x86/2.6, gcc-3.4.4, glibc-2.3.4.20041102-r1,
2.6.12-rc4-nitro1-k1 i686)
=================================================================
System uname: 2.6.12-rc4-nitro1-k1 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  1 2005, 03:23:48)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-pipe -O2 -fomit-frame-pointer -fprefetch-loop-arrays
-momit-leaf-frame-pointer -march=pentium-m -fweb "
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/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -fomit-frame-pointer -fprefetch-loop-arrays
-momit-leaf-frame-pointer -march=pentium-m -fweb "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acpi alsa apache2 arts artswrappersuid avi bash-completion berkdb
bzip2 cddb cdio cdparanoia cdr crypt curl dga directfb dlloader dvd dvdread
exiscan exiscan-acl fam fbcon ffmpeg flac fortran freetype gd gdbm gif gstreamer
gtk2 hal hardened icq imagemagick imlib jack jack-tmpfs java jpeg jpeg2k junit
kde kdeenablefinal libwww lzw-tiff mad matroska mmap mmx mozilla moznocompose
moznoirc moznomail mozsvg mp3 mpeg msn mysql ncurses network nls nomotif nptl
ogg oggvorbis opengl openntpd pam pdflib perl pic plotutils png prelink python
qt quicktime readline real rtc shaper speex spell sqlite sse sse2 ssl stream
svga sysfs tcpd tetex tiff truetype unicode userlocales vorbis win32codecs x86
xine xml2 xmms xrandr xv xvid zeroconf zlib linguas_fr userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET
Comment 1 Christophe C 2005-05-30 16:22:46 UTC
Created attachment 60221 [details]
Preprocessed source as given by gcc
Comment 2 Christophe C 2005-05-30 16:43:08 UTC
I saw this was assigned to perl devs, but it's a GCC bug :

I just discovered that gcc ICEs exactly at the same place (in emit-rtl.c:3343)
while compiling =media-libs/libsndfile-1.0.11 with -O1 but is fine with no
optimization.
Comment 3 Christophe C 2005-05-31 16:47:52 UTC

*** This bug has been marked as a duplicate of 79852 ***