package/gcc: backport fix for xtensa PR 91880
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 26 Sep 2019 21:31:53 +0000 (14:31 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 27 Sep 2019 20:26:36 +0000 (22:26 +0200)
commita88e87eee0a48cf9de51dde3e721d1b4b2fe6f0e
tree485cead3fc502dce076db187b90efd275def81af
parentbc224938d0ae3468c0e916eda378d9d0551bd91c
package/gcc: backport fix for xtensa PR 91880

Xtensa hwloop_optimize segfaults when zero overhead loop is about to be
inserted as the first instruction of the function.
Insert zero overhead loop instruction into new basic block before the
loop when basic block that precedes the loop is empty.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gcc/7.4.0/1003-xtensa-fix-PR-target-91880.patch [new file with mode: 0644]
package/gcc/8.3.0/0002-xtensa-fix-PR-target-91880.patch [new file with mode: 0644]
package/gcc/9.2.0/0002-xtensa-fix-PR-target-91880.patch [new file with mode: 0644]