Bug#330595: Miscompilation with -fomit-frame-pointer -O3 -funroll-all-loops
tags 330595 + unreproducible
Camm Maguire writes:
> Package: gcc-4.0
> Version: 4.0.1-5
> Severity: serious
> The following preprocessed file is miscompiled when compiled as follows:
> + /usr/bin/gcc -o ATL_F77wrap_ctrsv.o -c -DL2SIZE=4194304 -I/fix/t1/camm/debian/atlas/atlas3-3.6.0/include -I/fix/t1/camm/debian/atlas/atlas3-3.6.0/include/Linux_base_shared -I/fix/t1/camm/debian/atlas/atlas3-3.6.0/include/contrib -DAdd__ -DStringSunStyle -DATL_OS_Linux -DATL_GAS_x8632 -DSCPLX ../f77wrap/ATL_F77wrap_trsv.c -fPIC -fomit-frame-pointer -O3 -funroll-all-loops
> Omitting the -fomit-frame-pointer resolves the problem.
Camm, thanks for the increasing number of bug reports ;-)
- please make sure to test with recent compiler versions (currently
- please check with optimization levels suggested by policy (-O2)
- please check using gcc-snapshot.
At least I cannot reproduce this with 4.0.1-9.