https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358
--- Comment #13 from Honggyu Kim <hong.gyu.kim at lge dot com> --- Created attachment 35041 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35041&action=edit backport patch from linaro Jongsung Kim (neidhard....@lge.com) found a patch that generates this error. I think this patch is not the root cause but it just triggers some buggy code by enabling sibcall optimization in this case. When we applied a patch in a reverse way, sibcall optimiztion is off in this case then it works fine. I have attached the patch for your reference.