package/gcc: fix ARC adc/sbc patterns handling in GCC 10.x
authorVeronika Kremneva <Veronika.Kremneva@synopsys.com>
Thu, 3 Dec 2020 19:23:06 +0000 (22:23 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 30 Dec 2020 22:39:30 +0000 (23:39 +0100)
commita61529b6c372e03cda428c695b17ce4b986daac8
tree5daf49deceba275643e6cb0d1079a725c3fea9bd
parent14522a8f9d272204763c49a21ebce5653430c612
package/gcc: fix ARC adc/sbc patterns handling in GCC 10.x

There is a problem while building various packages with GCC 10.x for ARC:

----------------------------->8---------------------------
make[2]: *** [magick/libGraphicsMagick_la-analyze.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/ccFqDn0F.s: Assembler messages:
/tmp/ccFqDn0F.s:1586: Error: operand is not duplicate of the previous one for instruction 'adc'
----------------------------->8---------------------------

This failure happens on regular basis and can also be observed in:

http://autobuild.buildroot.net/results/c9d13a3659e3a45864f9622b29122e666f763c6e/
http://autobuild.buildroot.net/results/84edcdb0f5759fa587a5638e1bab18379ee1f3b2/
http://autobuild.buildroot.net/results/6f6acbb1a8708ad840a9361ee72b8d14699b44d9/

More details you can find on filed issue:
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/310
Fix:
https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/09944fba5bfb8e5543ce043c70d08222cf2f97ff

This fix was already added in commit
692829d967c30768859c9e043c15f45edda109ac ("toolchain: add upstream fix
for arc gcc") for the ARC-specific gcc version, but not for gcc 10.x,
which can be selected on ARC and exhibits the same problem.

Signed-off-by: Veronika Kremneva <kremneva@synopsys.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gcc/10.2.0/0001-arc-Refurbish-adc-sbc-patterns.patch [new file with mode: 0644]