------- Comment #13 from redi at gcc dot gnu dot org 2010-04-12 18:08 ------- I can't read or write assembler, but searching the interweb tells me that sahf is not valid in 64-bit mode, e.g. http://www.x86-64.org/pipermail/discuss/2004-April/004615.html and also "Introduction to 80x86 Assembly Language and Computer Architecture" by Richard C. Detmer
Why is that instruction being issued when compiling amd64/libgfortran? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733