RT compiled by gcc-11.3.0-1 crashes when wavelet is enabled

RT worked perfectly before I upgraded msys2.
Now, it crashes for sure when wavelet is enabled. Even the executable compiled from 5.8 crashes.

I updated msys2 today and the version of gcc is now 12.xx. After this update RT doesn’t crash again even if wavelet is turned on.

However, gcc 12 still has a minor issue. I had to compile the source code using a single thread, otherwise the build process will be stuck at task 290/300. Anyhow, it’s able to generate code as good as before.