gcc: arc-2017.03-rc2: Fix "unrecognized supposed constant" error
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Mon, 15 May 2017 15:56:57 +0000 (18:56 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 15 May 2017 18:07:06 +0000 (20:07 +0200)
commit2b360bd547f1c80b75c356a1aedca03a57debd94
tree5b1d56ed35ea04b3038bcc1635cec158c29d5301
parent1dc3864dabb57663f58e2975de17b91b452bf552
gcc: arc-2017.03-rc2: Fix "unrecognized supposed constant" error

This fixes the following problem:
------------------------------------>8--------------------------------
arc-linux-gcc -c -Os -fPIC iso9660.i
iso9660.c: In function 'strip_trail':
iso9660.c:155:1: error: unrecognized supposed constant
 }
 ^
(unspec:SI [
        (symbol_ref:SI ("*.LANCHOR1") [flags 0x182])
    ] ARC_UNSPEC_GOTOFFPC)
iso9660.c:155:1: internal compiler error: in arc_legitimate_constant_p, at config/arc/arc.c:6028
------------------------------------>8--------------------------------

Found by Buildroot autobuilder [1].

The fix [2] is in arc-2017.03 development branch of ARC GCC and once it
becomes a part the next release of ARC tools this should be removed
from Buildroot.

[1] http://autobuild.buildroot.net/results/c90/c909e8c397ab972b6aa4d370572cad4fae284d00/build-end.log
[2] https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/139fed9d29ab935b3bc5159c0bdf7b8b8a39442d

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gcc/arc-2017.03-rc2/0001-FIX-PIC-return-false-for-any-PIC-related-unspecs.patch [new file with mode: 0644]