https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763
--- Comment #3 from Mike Lothian ---
So dropping the -march=native allows everything to work again no matter which
version of GCC
Just using -mbmi breaks things and using -march=native -mno-bmi allows it all
to work
This is on a Skylake process
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763
--- Comment #2 from Mike Lothian ---
Sorry I should have been more clear, this is LLVM trunk
I'm using these flags:
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="-O2 -march=native -pipe"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763
--- Comment #1 from Andrew Pinski ---
There are some known issues with older versions of LLVM, maybe you are using
too older version of LLVM. That is some versions of LLVM have undefined C++
code in them. GCC 7.1 is more aggressive of optimizin