[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2018-01-26 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #47 from Mike Lothian --- With the patch you've committed to gcc master, applied on top of GCC 7.3 I'm now seeing the following error building Clang: [294/954] /usr/bin/x86_64-pc-linux-gnu-g++ -m32 -D_FILE_OFFSET_BITS=64

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2018-01-26 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #42 from Mike Lothian --- With the patch in Comment 36 I get the following error compiling Clang FAILED: lib/Lex/CMakeFiles/clangLex.dir/PPExpressions.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -m32 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2018-01-25 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #39 from Mike Lothian --- I can confirm it fixes things for me too. Is that the final patch in Comment 36? If so I'll try and get the Gentoo devs to include it in the GCC ebuilds Will this be added to GCC 8.1 and 7.4? Thanks

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2018-01-25 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #26 from Mike Lothian --- Is this the patch you want us to test then: diff -ur a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md --- a/gcc/config/i386/i386.md 2018-01-16 11:17:49.509247000 + +++ b/gcc/config/i386/i386.md

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2018-01-05 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #15 from Mike Lothian --- Created attachment 43041 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43041=edit llvm-tblgen Working and Broken binaries

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2018-01-05 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #14 from Mike Lothian --- I've been playing around with GCC 7.2.0 again When compiling a 32bit LLVM with -O2 -march=native, llvm-tblgen runs indefinitely during the build so it never completes Doing the same with -O2 -march=native

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2017-08-09 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #12 from Mike Lothian --- Created attachment 41960 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41960=edit si_shader objdumps

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2017-08-09 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #11 from Mike Lothian --- So a lot of the segfaults I see are in si_shader so I thought I'd compile Mesa with and without BMI and compare the onjdumps of the two .o files CFLAGS="-O2 -march=native -pipe -mno-bmi -m32" CXXFLAGS="-O2

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2017-08-09 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #10 from Mike Lothian --- Unfortunately it also depends on LLVM not just Mesa which makes it a much bigger target for figuring this out

[Bug target/81763] Issues with BMI on 32bit x86 apps on GCC 7.1+

2017-08-08 Thread mike at fireburn dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81763 --- Comment #6 from Mike Lothian --- I tried the test case with gcc -O2 -march=native test.c -o test and gcc -O2 -march=native -mno-bmi test.c -o test Both executables seem to run with no output I've only seen the issue in radeonsi in Mesa

[Bug target/81763] Issues with 32bit x86 apps on GCC 7.1+

2017-08-08 Thread mike at fireburn dot co.uk
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

[Bug target/81763] Issues with 32bit x86 apps on GCC 7.1+

2017-08-07 Thread mike at fireburn dot co.uk
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"

[Bug c/81763] New: Issues with 32bit x86 apps on GCC 7.1+

2017-08-07 Thread mike at fireburn dot co.uk
Assignee: unassigned at gcc dot gnu.org Reporter: mike at fireburn dot co.uk Target Milestone: --- I've been seeing issues with 32bit x86 llvm & mesa when using GCC 7.1.0 and I've just tested GCC 7.2 RC When llvm & mesa are compiled with GCC 7.1.0+ and I run a 32bit