3.4-cvs (today): optimization yields segfaulting code

Markus Werle numerical.simulation@web.de
Wed Feb 26 10:04:00 GMT 2003


Hi!

While playing around with opt-flags I encountered some spurious behaviour
of generated code which vanishes if I remove "-O9" from the armada
of flags below:

reproduce with:

# g++ -DNDEBUG -ansi -funroll-loops -finline-functions -O9  -ftime-report -fguess-branch-probability -fssa -fssa-dce  -foptimize-register-move -fcprop-registers
-frerun-loop-opt -frerun-cse-after-loop -floop-optimize  -finline -fpeephole -fmove-all-movables -funroll-all-loops -fstrength-reduce  -ftracer -fmem-report
-march=pentium4  test.ii

# a.out DebugInfoFooter.tex LaTeXFooter.h LaTeXFooter
Segmentation fault


My architecture is an Intel P4 with
Linux 2.4.16-4GB i686 unknown
g++ (GCC) 3.4 20030226 (experimental)


best regards,


Markus


-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.tgz
Type: application/octet-stream
Size: 116975 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20030226/2965e8ed/attachment.obj>


More information about the Gcc-bugs mailing list