https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115135
--- Comment #2 from Carlos Alberto Lopez Perez <clopez at igalia dot com> --- (In reply to Andrew Pinski from comment #1) > Does either -fno-ivopts or -fno-ipa-modref help? -fno-ivopts does not help -fno-ipa-modref helps! passing this flag makes the compiled program is correct :)