I did some optimization testing by bootstrapping with "--with-arch=native 
--with-tune=native"
on an AMD Threadripper system, that's "znver2".

I got a lot of additional testsuite failures especially in the jit testsuite.

The log shows a lot of failures of the following form:

libgccjit.so: error: bad value 'native' for '-march=' switch
libgccjit.so: note: valid arguments to '-march=' switch are: nocona core2 
nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell 
core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake 
icelake-server cascadelake tigerlake cooperlake sapphirerapids emeraldrapids 
alderlake raptorlake meteorlake graniterapids bonnell atom silvermont slm 
goldmont goldmont-plus tremont sierraforest grandridge knl knm x86-64 x86-64-v2 
x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 
nano-x4 lujiazui k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 
athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 
znver4 btver1 btver2 native
DISCARDED exp6 : libgccjit.so: error: bad value 'native' for '-march=' switch
DISCARDED exp6 : libgccjit.so: note: valid arguments to '-march=' switch are: 
nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge 
core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake 
icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake 
sapphirerapids emeraldrapids alderlake raptorlake meteorlake graniterapids 
bonnell atom silvermont slm goldmont goldmont-plus tremont sierraforest 
grandridge knl knm x86-64 x86-64-v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 
nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 lujiazui k8 k8-sse3 opteron 
opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 
bdver3 bdver4 znver1 znver2 znver3 znver4 btver1 btver2 native
Assembler messages:
Error: can't open /tmp/libgccjit-uacKEw/fake.s for reading: No such file or 
directory
DISCARDED exp6 : Assembler messages:
DISCARDED exp6 : Error: can't open /tmp/libgccjit-uacKEw/fake.s for reading: No 
such file or directory
libgccjit.so: error: error invoking gcc driver
DISCARDED exp6 : libgccjit.so: error: error invoking gcc driver

So, the "-march" switch in libgccjit.so is wrong!

I can open a PR if neccessary.

Rainer

Attachment: OpenPGP_0x917D882CE22A6AD2_and_old_rev.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to