Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107664 - sed 4.1.4 fails compile in regex.c due to register spill in class AREG
Summary: sed 4.1.4 fails compile in regex.c due to register spill in class AREG
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 19:20 UTC by James
Modified: 2005-09-29 23:53 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 James 2005-09-29 19:20:25 UTC
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../intl -I..
-I../lib -I../intl   -march=pentium3 -O1 -freorder-blocks
-fdelete-null-pointer-checks -finline-functions -fmove-all-movables
-fcaller-saves -fno-thread-jumps -fsched-spec -minline-all-stringops
-mno-push-args -fschedule-insns2 -fno-if-conversion2 -fno-delayed-branch
-freorder-functions -frename-registers -fsched-interblock -fprefetch-loop-arrays
-fno-omit-frame-pointer -falign-jumps -fcse-skip-blocks
-fexpensive-optimizations -foptimize-sibling-calls -fcse-follow-jumps
-fno-merge-constants -frerun-loop-opt -maccumulate-outgoing-args
-fschedule-insns -pipe -MT utils.o -MD -MP -MF ".deps/utils.Tpo" -c -o utils.o
utils.c; \
then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; else rm -f ".deps/utils.Tpo";
exit 1; fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../intl -I..
-I../lib -I../intl   -march=pentium3 -O1 -freorder-blocks
-fdelete-null-pointer-checks -finline-functions -fmove-all-movables
-fcaller-saves -fno-thread-jumps -fsched-spec -minline-all-stringops
-mno-push-args -fschedule-insns2 -fno-if-conversion2 -fno-delayed-branch
-freorder-functions -frename-registers -fsched-interblock -fprefetch-loop-arrays
-fno-omit-frame-pointer -falign-jumps -fcse-skip-blocks
-fexpensive-optimizations -foptimize-sibling-calls -fcse-follow-jumps
-fno-merge-constants -frerun-loop-opt -maccumulate-outgoing-args
-fschedule-insns -pipe -MT regex.o -MD -MP -MF ".deps/regex.Tpo" -c -o regex.o
regex.c; \
then mv -f ".deps/regex.Tpo" ".deps/regex.Po"; else rm -f ".deps/regex.Tpo";
exit 1; fi
In file included from regex.c:84:
regex_internal.h:102:1: warning: "__mempcpy" redefined
In file included from /usr/include/string.h:417,
                 from regex_internal.h:28,
                 from regex.c:84:
/usr/include/bits/string2.h:207:1: warning: this is the location of the previous
definition
In file included from regex.c:88:
regexec.c: In function `re_exec':
regexec.c:581: error: unable to find a register to spill in class `AREG'
regexec.c:581: error: this is the insn:
(insn:HI 52 140 53 0 (parallel [
            (set (reg:SI 2 cx [73])
                (unspec:SI [
                        (mem:BLK (reg/f:SI 5 di [orig:75 string ] [75]) [0 A8])
                        (reg:QI 2 cx [77])
                        (const_int 1 [0x1])
                        (reg:SI 3 bx [76])
                    ] 20))
            (use (reg:SI 19 dirflag))
            (clobber (reg/f:SI 5 di [orig:75 string ] [75]))
            (clobber (reg:CC 17 flags))
        ]) 456 {*strlenqi_1} (insn_list 50 (insn_list 48 (insn_list 49
(insn_list 51 (nil)))))
    (expr_list:REG_DEAD (reg:SI 19 dirflag)
        (expr_list:REG_DEAD (reg:SI 3 bx [76])
            (expr_list:REG_DEAD (reg:QI 2 cx [77])
                (expr_list:REG_DEAD (reg/f:SI 5 di [orig:75 string ] [75])
                    (expr_list:REG_UNUSED (reg:CC 17 flags)
                        (expr_list:REG_UNUSED (reg/f:SI 5 di [orig:75 string ] [75])
                            (nil))))))))
regexec.c:581: confused by earlier errors, bailing out
make[2]: *** [regex.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sed-4.1.4/work/sed-4.1.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sed-4.1.4/work/sed-4.1.4'
make: *** [all] Error 2

!!! ERROR: sys-apps/sed-4.1.4 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! build failed



Reproducible: Always
Steps to Reproduce:
1. emerge sed
2.
3.

Actual Results:  
error in regex.c spill in class AREG

Expected Results:  
compile cleanly

Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13.2
i686)
=================================================================
System uname: 2.6.13.2 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O1 -freorder-blocks -fdelete-null-pointer-checks
-finline-functions -fmove-all-movables -fcaller-saves -fno-thread-jumps
-fsched-spec -minline-all-stringops -mno-push-args -fschedule-insns2
-fno-if-conversion2 -fno-delayed-branch -freorder-functions -frename-registers
-fsched-interblock -fprefetch-loop-arrays -fno-omit-frame-pointer -falign-jumps
-fcse-skip-blocks -fexpensive-optimizations -foptimize-sibling-calls
-fcse-follow-jumps -fno-merge-constants -frerun-loop-opt
-maccumulate-outgoing-args -fschedule-insns -pipe"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O1 -freorder-blocks -fdelete-null-pointer-checks
-finline-functions -fmove-all-movables -fcaller-saves -fno-thread-jumps
-fsched-spec -minline-all-stringops -mno-push-args -fschedule-insns2
-fno-if-conversion2 -fno-delayed-branch -freorder-functions -frename-registers
-fsched-interblock -fprefetch-loop-arrays -fno-omit-frame-pointer -falign-jumps
-fcse-skip-blocks -fexpensive-optimizations -foptimize-sibling-calls
-fcse-follow-jumps -fno-merge-constants -frerun-loop-opt
-maccumulate-outgoing-args -fschedule-insns -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/
ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd
eds emboss encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer
gtk gtk2 imagemagick imlib ipv6 jpeg kde libg++ libwww lirc mad mikmod mmx
mmxext motif mp3 mpeg mysql ncurses nls ogg oggvorbis openal opengl oss pam
pdflib perl png python qt quicktime readline samba sdl sockets spell sse ssl
tcpd tiff truetype truetype-fonts type1-fonts usb v4l vcd vorbis wifi xine xml2
xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-29 23:43:02 UTC
Holy sh*t - my box is glowin' C[XX]FLAGS are *not* supported.
Comment 2 Joshua Jackson (RETIRED) gentoo-dev 2005-09-29 23:53:06 UTC
[sarcasm]
From the desk of the nominations committee for Gentoo Ricer awards:

Dear sir or madam,
I'm writing to inform you of your nomination for most outrageous use of CFLAGS a
nd CXXFLAGS. I hope you good luck in your future endeavours to show how wild som
e people get in optimizing their systems. Thank you for setting this example for
 others to avoid.

        Sincerely,
        
        The Committee
[/sarcasm]