Bug#430049: gcc-4.1: acovea triggers error in gcc
Package: gcc-4.1
Version: 4.1.2-6
Severity: grave
Justification: renders package unusable
While running acovea to determine optimal compilationflags, a bug gets
triggered:
folkert@belle:~/Personal/src/multitail/devel$ runacovea -config /usr/share/libacovea/config/gcc41_opteron_nofm.acovea -input /usr/share/libacovea/benchmarks/huffbench.c
Acovea 5.1.1 (compiled Oct 16 2006 04:05:11)
Evolving Better Software
Invented by Scott Robert Ladd (scott.ladd@coyotegulch.com)
Coyote Gulch Productions (http://www.coyotegulch.com)
test application: /usr/share/libacovea/benchmarks/huffbench.c
test system: belle
config description: gcc 4.1 Opteron (AMD64/x86_64), no -ffast-math (version 1.0.0)
test configuration: /usr/share/libacovea/config/gcc41_opteron_nofm.acovea
acovea version: 5.1.1
evocosm version: 3.1.0
application version: gcc 4.1.3
# of populations: 5
population size: 40
survival rate: 10% (4)
migration rate: 5% (2)
mutation rate: 1%
crossover rate: 100%
fitness scaling: sigma
generations to run: 20
random number seed: 469679671
testing mode: speed
test start time: 2007 Jun 22 01:19:15
------------------------------------------------------------
generation 1 begins
population 1: ....cc1: warning: -f[no-]force-mem is nop and option will be removed in 4.2
...../usr/share/libacovea/benchmarks/huffbench.c: In function 'main':
/usr/share/libacovea/benchmarks/huffbench.c:477: error: unable to find a register to spill in class 'DIREG'
/usr/share/libacovea/benchmarks/huffbench.c:477: error: this is the insn:
(insn 30 24 32 1 (parallel [
(set (reg:CC 17 flags)
(compare:CC (mem:BLK (reg:DI 4 si [orig:68 D.4835 ] [68]) [0 A8])
(mem/s:BLK (reg/f:DI 1 dx [72]) [0 A8])))
(use (reg:DI 2 cx [73]))
(use (const_int 1 [0x1]))
(use (reg:SI 19 dirflag))
(clobber (reg:DI 4 si [orig:71 D.4835 ] [71]))
(clobber (reg/f:DI 1 dx [72]))
(clobber (reg:DI 2 cx [73]))
]) 721 {*cmpstrnqi_nz_rex_1} (insn_list:REG_DEP_OUTPUT 12 (insn_list:REG_DEP_TRUE 28 (insn_list:REG_DEP_TRUE 27 (insn_list:REG_DEP_TRUE 24 (insn_list:REG_DEP_TRUE 29 (insn_list:REG_DEP_ANTI 13 (nil)))))))
(expr_list:REG_DEAD (reg:SI 19 dirflag)
(expr_list:REG_DEAD (reg:DI 2 cx [73])
(expr_list:REG_DEAD (reg:DI 4 si [orig:68 D.4835 ] [68])
(expr_list:REG_DEAD (reg/f:DI 1 dx [72])
(expr_list:REG_UNUSED (reg:DI 2 cx [73])
(expr_list:REG_UNUSED (reg/f:DI 1 dx [72])
(expr_list:REG_UNUSED (reg:DI 4 si [orig:71 D.4835 ] [71])
(expr_list:REG_EQUAL (compare:CC (mem:BLK (reg:DI 4 si [orig:68 D.4835 ] [68]) [0 A8])
(mem/s:BLK (symbol_ref/f:DI ("*.LC4") [flags 0x2] <string_cst 0x2b0175f286f0>) [0 A8]))
(nil))))))))))
/usr/share/libacovea/benchmarks/huffbench.c:477: confused by earlier errors, bailing out
COMPILE FAILED:
gcc -lrt -lm -std=gnu99 -O1 -march=opteron -fno-merge-constants -fno-defer-pop -fno-thread-jumps -momit-leaf-frame-pointer -fno-guess-branch-probability -fno-cprop-registers -fno-delayed-branch -fno-loop-optimize -fno-tree-ccp -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-lrs -fno-tree-copyrename -fno-tree-fre -fcrossjumping -fcse-follow-jumps -fgcse -fexpensive-optimizations -frerun-loop-opt -fcaller-saves -fforce-addr -fschedule-insns -fschedule-insns2 -fstrict-aliasing -fdelete-null-pointer-checks -fthread-jumps -fsched-interblock -freorder-blocks -freorder-functions -falign-jumps -falign-labels -ftree-vrp -ftree-pre -finline-functions -funswitch-loops -ffloat-store -fprefetch-loop-arrays -fno-inline -funswitch-loops -fno-function-cse -fgcse-las -freschedule-modulo-scheduled-loops -ftree-loop-linear -ftree-loop-im -ftree-loop-ivcanon -fivopts -ftree-vectorize -fbtr-bb-exclusive -mieee-fp -mno-push-args -mno-align-stringops -o /tmp/ACOVEA92C2DA09 /usr/share
/libacovea/benchmarks/huffbench.c
(using latest acovea from debian-test)
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.18-4-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.1 depends on:
ii binutils 2.17cvs20070426-8 The GNU assembler, linker and bina
ii cpp-4.1 4.1.2-6 The GNU C preprocessor
ii gcc-4.1-base 4.1.2-6 The GNU Compiler Collection (base
ii libc6 2.5-9 GNU C Library: Shared libraries
ii libgcc1 1:4.1.2-6 GCC support library
Versions of packages gcc-4.1 recommends:
ii libc6-dev 2.5-9 GNU C Library: Development Librari
pn libmudflap0-dev <none> (no description available)
-- no debconf information
Reply to: