https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69252
--- Comment #3 from Roman Zhuykov <zhroma at ispras dot ru> --- I'll try to help. While working with expanding SMS functionality 4-5 years ago (https://gcc.gnu.org/ml/gcc-patches/2011-07/msg01807.html), I create several fixes not connected to my main non-doloop-support patch. Unfortunately only two of that fixes were approved and only one fix was committed. Could you try this patch first of all: https://gcc.gnu.org/ml/gcc-patches/2011-12/msg01800.html This patch suits current trunk. There are links to other fixes, I can provide newer versions for trunk if needed. https://gcc.gnu.org/ml/gcc-patches/2011-09/msg02049.html https://gcc.gnu.org/ml/gcc-patches/2011-07/msg01804.html https://gcc.gnu.org/ml/gcc-patches/2011-12/msg00505.html https://gcc.gnu.org/ml/gcc-patches/2011-12/msg00506.html