Setting CFLAGS hard to -O0 is a QA no-no, but was a quick solution to segfaults. However I found a better way to set all optimizations off via flag-o-matic.eclass
Created attachment 97443 [details, diff] qemacs-CFLAGS_handling.patch
Fixed in CVS