Same as bug #308145 but with a later version. configure's --enable-optimized seems to be the culprit.
Thanks for spotting that! Looks like the fix patch got lost in 2.7 bump Fixed in all versions of llvm and clang, with --with-optimize-option for -O3 and a handy sed for -fomit-frame-pointer