package/gcc: gcc 9.x for or1k needs binutils >= 2.32
authorRomain Naour <romain.naour@gmail.com>
Sat, 17 Aug 2019 11:26:37 +0000 (13:26 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 21 Aug 2019 21:46:10 +0000 (23:46 +0200)
commite0ba09768eb27872e8685754952601bdac9ac75b
tree9b8b7924dbba79c6eace7a7e6c28d79313a6e4c9
parent1e4e7db74c0ead3a6a2ad6b10655b8de9a66dba6
package/gcc: gcc 9.x for or1k needs binutils >= 2.32

With binutils 2.30.x or 2.31.x, the assembler doesn't
support the code generated by gcc 9.1:

Error: junk at end of line `l.movhi r17,gotoffha(.LC0)'

gotoffha is supported by binutils since version 2.32 [1].
It was added by the ork1 gcc port merged into gcc 9.x [2].

So, for or1k we can select gcc 9.x only if binutils 2.32
(or later) is selected.

Tested using qemu_or1k_defconfig and selecting musl libc,
binutils 2.32 and gcc 9.1.

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=1c4f3780f7d939402cfe555007ebff45c8e38951
[2] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=d61fdfe71cfd42aa6454f2267a48c97820918fe3

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Waldemar Brodkorb <mail@waldemar-brodkorb.de>
[Arnout: invert the logic, like in the rest of the file]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/gcc/Config.in.host