"-optc-O3" plus "-prof" gcc failure
Johannes Ahlmann
softpro at gmx.net
Thu Jan 26 20:42:02 EST 2006
1.
AMD64 Athlon 2800+, Debian testing/unstable 32bit, Linux 2.6.11.7 #1 x86_64
2.
gcc version 3.3.5 (Debian 1:3.3.5-8)
3.
ghc -O2 -optc-O3 -fglasgow-exts -optc-ffast-math -prof --make nbody.hs
Chasing modules from: nbody.hs
Compiling Main ( nbody.hs, nbody.o )
Prologue junk?: .type s5pB_ret, @function
s5pB_ret:
xorl %eax, %eax
xorl %ecx, %ecx
movl %eax, 16(%esp)
movl %ecx, 20(%esp)
4.
see attachment "verbose"
5.
flags "-optc-O3" and "-prof" caused gcc to fail. when "optc-O3" was
removed, compilation worked fine.
6.
see attachment "nbody.hs"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nbody.hs
Type: text/x-haskell
Size: 5543 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20060127/8e32cf79/nbody.bin
-------------- next part --------------
Glasgow Haskell Compiler, Version 6.4.1, for Haskell 98, compiled by GHC version 6.4
Using package config file: /usr/lib/ghc-6.4.1/package.conf
Hsc static flags: -static -fscc-profiling
*** Chasing dependencies:
Chasing modules from: nbody.hs
Stable modules:
*** Compiling Main ( nbody.hs, interpreted ):
compile: input file nbody.hs
*** Checking old interface for Main:
Compiling Main ( nbody.hs, nbody.o )
*** Parser:
*** Renamer/typechecker:
*** Desugar:
Result size = 2576
*** Simplify:
Result size = 1776
Result size = 1721
Result size = 1721
*** Specialise:
Result size = 1731
*** Float out (not lambdas, not constants):
Result size = 1805
*** Float inwards:
Result size = 1805
*** Simplify:
Result size = 4502
Result size = 2363
Result size = 2280
Result size = 2270
Result size = 2270
*** Simplify:
Result size = 2248
Result size = 2248
*** Simplify:
Result size = 2262
Result size = 2256
Result size = 2256
*** Demand analysis:
Result size = 2256
*** Worker Wrapper binds:
Result size = 2469
*** GlomBinds:
*** Simplify:
Result size = 2847
Result size = 2092
Result size = 2077
Result size = 2077
*** Float out (not lambdas, constants):
Result size = 2849
*** Common sub-expression:
Result size = 2666
*** Float inwards:
Result size = 2666
*** Liberate case:
Result size = 2666
*** SpecConstr:
Result size = 2867
*** Simplify:
Result size = 2573
Result size = 2365
Result size = 2365
*** Tidy Core:
Result size = 2365
*** CorePrep:
Result size = 2936
*** Stg2Stg:
*** CodeGen:
*** CodeOutput:
*** C Compiler
gcc -x c /tmp/ghc9496.hc -o /tmp/ghc9496.raw_s -DDONT_WANT_WIN32_DLL_SUPPORT -fno-defer-pop -fomit-frame-pointer -fno-builtin -DSTOLEN_X86_REGS=4 -v -S -Wimplicit -O -D__GLASGOW_HASKELL__=604 -DPROFILING -O3 -ffast-math -ffloat-store -I . -I /usr/lib/ghc-6.4.1/include
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-8)
/usr/lib/gcc-lib/i486-linux/3.3.5/cc1 -quiet -v -I . -I /usr/lib/ghc-6.4.1/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=5 -DDONT_WANT_WIN32_DLL_SUPPORT -DSTOLEN_X86_REGS=4 -D__GLASGOW_HASKELL__=604 -DPROFILING /tmp/ghc9496.hc -quiet -dumpbase ghc9496.hc -auxbase-strip /tmp/ghc9496.raw_s -O -O3 -Wimplicit -version -fno-defer-pop -fomit-frame-pointer -fno-builtin -ffast-math -ffloat-store -o /tmp/ghc9496.raw_s
GNU C version 3.3.5 (Debian 1:3.3.5-8) (i486-linux)
compiled by GNU C version 3.3.5 (Debian 1:3.3.5-8).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=128431
ignoring nonexistent directory "/usr/i486-linux/include"
#include "..." search starts here:
#include <...> search starts here:
.
/usr/lib/ghc-6.4.1/include
/usr/local/include
/usr/lib/gcc-lib/i486-linux/3.3.5/include
/usr/include
End of search list.
*** Mangler
/usr/lib/ghc-6.4.1/ghc-asm /tmp/ghc9496.raw_s /tmp/ghc9496.s 4
Prologue junk?: .type s5pB_ret, @function
s5pB_ret:
xorl %eax, %eax
xorl %ecx, %ecx
movl %eax, 16(%esp)
movl %ecx, 20(%esp)
*** Deleting temp files
Deleting: /tmp/ghc9496.s /tmp/ghc9496.raw_s /tmp/ghc9496.hc
More information about the Glasgow-haskell-bugs
mailing list