]> code.ossystems Code Review - openembedded-core.git/commit
gcc: Backport nios2 r31 fix
authorMarek Vasut <marex@denx.de>
Wed, 17 Feb 2016 00:29:36 +0000 (01:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Feb 2016 07:39:21 +0000 (07:39 +0000)
commit24b0f08ae4fbaf285d494ab53a3b168a6dd17b20
tree8c31d936fff97110512383daf8a7211238fc09eb
parentf92465c02ea6aef59f5e65a9eb70ebc6a5c92617
gcc: Backport nios2 r31 fix

Backport a fix from GCC mainline, which fixes libpcre 8.38 and expat 2.1.0
build on nios2. The example of the fixed error follows:

| ./nios2-poky-linux-libtool --silent --mode=compile nios2-poky-linux-gcc  -mel -mhw-div  -mhw-mul  --sysroot=/mnt/work/Yocto/build-nios2/tmp/sysroots/10m50 -I../expat-2.1.0/lib -I. -O2 -pipe -g -feliminate-unused-debug-types -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions  -DHAVE_EXPAT_CONFIG_H -o lib/xmltok.lo -c ../expat-2.1.0/lib/xmltok.c
| {standard input}: Assembler messages:
| {standard input}:4988: Error: r31 cannot be used with jmp; use ret instead
| {standard input}:9703: Error: r31 cannot be used with jmp; use ret instead
| {standard input}:20068: Error: r31 cannot be used with jmp; use ret instead
| {standard input}:24020: Error: r31 cannot be used with jmp; use ret instead
| Makefile:196: recipe for target 'lib/xmltok.lo' failed
| make: *** [lib/xmltok.lo] Error 1
| WARNING: exit code 1 from a shell command.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-5.3.inc
meta/recipes-devtools/gcc/gcc-5.3/0052-nios2-use-ret-with-r31.patch [new file with mode: 0644]