Open matteo-meluzzi opened 7 months ago
unlikely to be fixed. IIRC llvm requires at least -O2
I see. Thank you for the reply! Is there any online resources that explain why this is the case?
Can't find anything now. Heck maybe I dreamed the whole thing up, or it has been fixed since Iooked at it 4 years ago?
But as I remember, llvm used some... uh... not so sound things that break under -O0.
Maybe @michaliskok can weigh in and provide some clarity
Also just for the sake of it, try downgrading to LLVM 15.0.0
When running a genmc executable compiled with optimizations disabled, I get a runtime error. When running genmc with the default compiler flags, everything runs smoothly.
How to reproduce: 1) checkout master branch 2)
autoreconf -i
to generate the configure script 3)./configure AR=llvm-ar CXXFLAGS="-O0 -g"
to generate Makefile 4)make genmc
to generate genmc executable 5)./genmc --print-exec-graphs tests/correct/litmus/LB2/variants/lb0.c
outputs:In contrast the same steps except for 3)
./configure AR=llvm-ar
outputsI am using MacOS 14, llvm@15 installed