Bug#466948: Acknowledgement (gfortran-4.3: miscompiled code with -O2 on ia64)
Turns out the culprit (mis-compiled file at -O2 on ia64) was tlsc.F.
Test case saved at http://people.debian.org/~kmccarty/tlsc-test-case.tar.gz
(note, the files libkernlib.a, libkerngent.a, and test.o in the tarball
are compiled on ia64 from CERNLIB source code, which is GPL; it is
available from the Debian source package of "cernlib" version
2006.dfsg.2-10)
I saved files tlsc.f, tlsc.s and tlsc.o into subdirectories of the test
case for three different combinations of compile flags:
-O2 (causes miscompiled code) in obj-fail subdir
-O0 (seems fine)
-O2 -funroll-loops (seems fine) both in obj-success subdir.
Also the output of the test case, saved as output.txt in each subdir.
The presence or absence of -fno-automatic (I omitted it in all three
cases) appears to make no difference.
Again, I'll try to find time to submit this upstream.
--
Kevin B. McCarty <kmccarty@gmail.com>
WWW: http://www.starplot.org/
WWW: http://people.debian.org/~kmccarty/
GPG: public key ID 4F83C751
Reply to: