Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337667 (PR38621) - [ICE/4.4/4.5/4.6/4.7] sys-devel/gcc on SuperH building ghostscript failed with unable to find a register to spill in class R0_REGS
Summary: [ICE/4.4/4.5/4.6/4.7] sys-devel/gcc on SuperH building ghostscript failed wit...
Status: RESOLVED FIXED
Alias: PR38621
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: sh Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR38621
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 17:01 UTC by SpanKY
Modified: 2016-01-12 18:52 UTC (History)
1 user (show)

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


Attachments
gdevifno.i (gdevifno.i,197.27 KB, text/plain)
2010-09-16 17:03 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2010-09-16 17:01:20 UTC
sh4-unknown-linux-gnu-gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -m4 -pipe -DUSE_LIBPAPER -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/8.71\" -I./obj -I./base  -o ./obj/gdevifno.o -c ./base/gdevifno.c
./base/gdevifno.c: In function ‘addbuf’:
./base/gdevifno.c:474: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
./base/gdevifno.c: In function ‘inferno_rgb2cmap’:
./base/gdevifno.c:159: error: unable to find a register to spill in class ‘R0_REGS’
./base/gdevifno.c:159: error: this is the insn:
(insn 132 187 152 18 ./base/gdevifno.c:157 (set (mem/s:SI (plus:SI (reg/v/f:SI 4 r4 [orig:183 dev ] [183])
                (reg/f:SI 2 r2 [225])) [3 S4 A32])
        (reg:SI 3 r3 [227])) 175 {movsi_ie} (expr_list:REG_DEAD (reg:SI 3 r3 [227])
        (expr_list:REG_DEAD (reg/f:SI 2 r2 [225])
            (expr_list:REG_DEAD (reg/v/f:SI 4 r4 [orig:183 dev ] [183])
                (expr_list:REG_EQUAL (const_int 1 [0x1])
                    (nil))))))
./base/gdevifno.c:159: confused by earlier errors, bailing out
make: *** [obj/gdevifno.o] Error 1



Portage 2.1.8.3 (default/linux/sh/10.0/server, gcc-4.4.3, glibc-2.11.2-r0, 2.6.30.9 sh4)
=================================================================
System uname: Linux-2.6.30.9-sh4-SH7751R-with-gentoo-1.12.13
Timestamp of tree: Thu, 16 Sep 2010 04:00:21 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.4.6-r2, 4.1.2, 4.2.0, 4.3.2, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="sh"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sh4-unknown-linux-gnu"
CFLAGS="-O2 -m4 -pipe"
CHOST="sh4-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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"
CXXFLAGS="-O2 -m4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-z,relro -Wl,-O1"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://bobolink.gentoo.org/gentoo-portage"
USE="X acl apache2 berkdb bindist bzip2 cli cracklib crypt cups curl cxx fortran ftp gd gdbm gif gpm iconv ipv6 jpeg modules mp3 mudflap mysql ncurses nls nossp nptl nptlonly openmp openntpd pcre perl png pppd python readline reflection sdl session sh snmp sockets sqlite ssl sysfs tcpd tiff truetype unicode xml xorg xprint zip zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2010-09-16 17:03:01 UTC
Created attachment 247617 [details]
gdevifno.i

created with:
sh4-unknown-linux-gnu-gcc  -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -Wdeclaration-after-statement -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -O2 -m4 -pipe -DUSE_LIBPAPER -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/lib/ghostscript/8.71\" -I./obj -I./base  -o ./obj/gdevifno.i -E -P ./base/gdevifno.c

and then to hit failure:
sh4-unknown-linux-gnu-gcc -O2 -m4 gdevifno.i -c
Comment 2 SpanKY gentoo-dev 2016-01-12 18:52:20 UTC
supposed to be fixed in gcc-4.9+