gcc: backport mauto-litpools xtensa option
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 12 Aug 2015 22:20:01 +0000 (01:20 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 4 Oct 2015 16:27:27 +0000 (17:27 +0100)
commit5b84265f1c29504724d0682c692f22ef02108a9f
tree2c8afa227e0969f9f3ea2f28f1449945ead563b5
parente0ae34b02943cc3d218ec4a489809c4848546a8c
gcc: backport mauto-litpools xtensa option

With support from assembler this option allows compiling huge functions,
where single literal pool at the beginning of a function may not be
reachable by L32R instructions at its end.

Currently assembler --auto-litpools option cannot deal with literals
used from multiple locations separated by more than 256 KBytes of code.
Don't turn constants into literals, instead use MOVI instruction to load
them into registers and let the assembler turn them into literals as
necessary.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/4.8.5/870-xtensa-add-mauto-litpools-option.patch [new file with mode: 0644]
package/gcc/4.9.3/870-xtensa-add-mauto-litpools-option.patch [new file with mode: 0644]
package/gcc/5.2.0/870-xtensa-add-mauto-litpools-option.patch [new file with mode: 0644]