Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322419 (PR43653) - [4.5/ICE] sys-devel/clang unrecognizable insn with -O2 -ftree-vectorize
Summary: [4.5/ICE] sys-devel/clang unrecognizable insn with -O2 -ftree-vectorize
Status: RESOLVED FIXED
Alias: PR43653
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR43653
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2010-06-02 01:08 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2012-07-15 06:02 UTC (History)
2 users (show)

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


Attachments
Build log (clang-2.7:20100602-004540.log,1.30 MB, text/plain)
2010-06-02 01:08 UTC, Diego Elio Pettenò (RETIRED)
Details
Preprocessed source file (InitHeaderSearch.c,1.06 MB, text/plain)
2010-06-02 09:29 UTC, Diego Elio Pettenò (RETIRED)
Details
InitHeaderSearch.ii reduced (InitHeaderSearch.ii,11.69 KB, text/plain)
2010-06-03 21:37 UTC, Ryan Hill (RETIRED)
Details
build.log (sys-devel/clang-2.8-r2) (build.log,1.29 MB, text/plain)
2010-12-13 20:17 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-02 01:08:05 UTC
Portage 2.2_rc67 (default/linux/amd64/10.0, gcc-4.5.0-asneeded, glibc-2.11.1-r0, 2.6.34 x86_64)
=================================================================
System uname: Linux-2.6.34-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-gentoo-2.0.1
Timestamp of tree: Tue, 01 Jun 2010 23:00:16 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.51.0.9
sys-devel/gcc:       4.4.3-r2, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.7b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-prerelease-jdk6 sun-bcla-java-vm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb -Wstrict-aliasing=2 -Wno-format-zero-length -Wformat=2 -Wno-error -Wno-pointer-sign -fdiagnostics-show-option"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb -Wno-error -Wformat=2 -Wstrict-aliasing=2 -fvisibility-inlines-hidden"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=n"
FEATURES="assume-digests autoaddcvs autoconfig collision-protect cvs distlocks fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign split-log splitdebug unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb"
GENTOO_MIRRORS="http://gentoo.wheel.sk/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en it"
MAKEOPTS="-j12 -s"
PKGDIR="/var/spool/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=ChangeLog"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/media/repos/gentoo-x86-sync"
PORTDIR_OVERLAY="/var/spool/portage/overlays/cross /var/lib/layman/x11 /var/lib/layman/x11 /var/lib/layman/tante_overlay /var/lib/layman/emacs /var/lib/layman/java-overlay /var/lib/layman/gnome /var/lib/layman/scarabeus /var/lib/layman/enlightenment /var/lib/layman/graaff /var/lib/layman/sunrise /media/repos/flame/flame-overlay /media/repos/flame/gentoo/ruby-overlay /var/spool/portage/overlays/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext S3TC a52 aac acl acpi4linux alsa amd64 apm audiofile avahi avi bluetooth bzip2 bzlib caps cjk cli crypt css cups custom-cflags custom-cxxflags cxx dbus dlloader dnd dpms dri dts emacs emboss fame ffmpeg flac foomaticdb gif gmp gnome gnome-keyring gnutls gpgme gphoto2 gtk gtk2 hal idn ieee1394 imlib imlib2 inotify ipv6 ithreads java5 java6 jpeg kdehiddenvisibility latex libnotify lm_sensors lx700 lzw lzw-tiff maildir matroska midi mmx mmx2 mmxext mng modules mozsvg mp3 mpeg mpeg4 mpm-threadpool mudflap multilib native network-cron nls no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython nolog4j nomotif nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin ogg oggvorbis openmp pam pch pdf pdflib pic pmount png policykit ppds pppd pulseaudio qemu-fast reflection rtc session snmp speex spell spl sse sse2 ssl ssse3 startup-notification stencil-buffer subversion svg svgz sysfs syslog tetex theora threads tiff truetype truetype-fonts type1 type1-fonts udev uncompressed-sounds unicode usb userlocales utf8 v4l v4l2 vhosts vorbis wxwindows x11vnc xcb xcomposite xorg xpm xv xvid zeroconf zlib zsh-completion zvbi" ALSA_CARDS="hda-intel usb-audio mpu401 ice1712" ALSA_PCM_PLUGINS="iec958 plug ioplug hooks empty route asym softvol extplug" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user cache dav dav_fs dav_lock deflate dir env expires ext_filter filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" LIRC_DEVICES="kworld" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19 jruby ree18" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-02 01:08:52 UTC
Created attachment 233797 [details]
Build log
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2010-06-02 01:36:15 UTC
InitHeaderSearch.cpp: In member function ‘void<unnamed>::InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(llvm::StringRef, llvm::StringRef, llvm::StringRef)’:
InitHeaderSearch.cpp:198:1: error: unrecognizable insn:
(insn 1015 1014 266 2 /var/tmp/portage/sys-devel/clang-2.7/work/llvm-2.7/include/llvm/ADT/Twine.h:156 (set (reg:DI 23 xmm2)
        (plus:DI (reg:DI 23 xmm2)
            (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC10") [flags 0x2]) [45 S8 A64]))) -1 (expr_list:REG_EQUIV (plus:DI (reg/f:DI 7 sp)
            (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC10") [flags 0x2]) [45 S8 A64]))
        (nil)))
InitHeaderSearch.cpp:198:1: internal compiler error: in extract_insn, at recog.c:2103
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2010-06-02 02:06:50 UTC
Can't reproduce, going to need preprocessed source.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-02 09:29:23 UTC
Created attachment 233833 [details]
Preprocessed source file
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-06-02 09:32:26 UTC
x86_64-pc-linux-gnu-g++ -O2 -ftree-vectorize InitHeaderSearch.c -c -o /tmp/test.o

This is the shortest command line to reproduce the problem…
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2010-06-03 01:08:26 UTC
Thanks, I also see this with 20100529 svn (r160023).
Comment 7 Ryan Hill (RETIRED) gentoo-dev 2010-06-03 21:37:06 UTC
Created attachment 234043 [details]
InitHeaderSearch.ii reduced
Comment 8 Dennis Schridde 2010-12-13 20:17:07 UTC
Created attachment 257053 [details]
build.log (sys-devel/clang-2.8-r2)

I probably have the same problem, even though the output is a little bit different:
---
InitHeaderSearch.cpp: In member function ‘void<unnamed>::InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(llvm::StringRef, llvm::StringRef, llvm::StringRef)’:
InitHeaderSearch.cpp:202:1: internal compiler error: in reload, at reload1.c:1187
---
Comment 9 Dennis Schridde 2010-12-25 23:44:30 UTC
?(In reply to comment #8)
> InitHeaderSearch.cpp:202:1: internal compiler error: in reload, at
> reload1.c:1187
This seems to be GCC-bug #43653 [1], and not associated with the ICE flameeyes reported.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43653
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2011-02-23 08:43:40 UTC
Same bug.  Error message just changed a bit with 4.5.2.
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2012-07-15 06:02:35 UTC
So this is fixed then.