Thanks for the %global macros.
How common in f36, and in general in fedora is the need for reducing the optimization levels? I don't have small examples to reproduce the failures, but both issues have a Dockerfile that can be used to compile the programs and trigger the failures (it takes 10 - 30 minutes). They include the original FTBFS bugzilla links too, in case they should be reassigned as gcc bugs instead.