Skip to content

Commit 7617b91

Browse files
committed
work around g++ compiler code generation bug with -O3 and -Ofast by using -O2
1 parent 39dd8b8 commit 7617b91

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mr.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
g++ -flto -ggdb -Ofast -fno-builtin -D NDEBUG -I . ntvdm.cxx i8086.cxx -o ntvdm -fopenmp -static
1+
# this compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
2+
# generates bad code using -O3 and -Ofast. I've yet to get to the bottom of this compiler bug.
3+
4+
g++ -flto -ggdb -O2 -fno-builtin -D NDEBUG -I . ntvdm.cxx i8086.cxx -o ntvdm -fopenmp -static

0 commit comments

Comments
 (0)