[Buildroot] [PATCH] gcc: fix uclibc build with gcc-8 for xtensa
jcmvbkbc at gmail.com
Mon Jun 25 21:13:24 UTC 2018
On Mon, Jun 25, 2018 at 1:50 PM, Romain Naour <romain.naour at gmail.com> wrote:
> Do you know what changed in gcc 8.0 that trigger this issue ?
No. My guess is that it's something innocent that tweaks instruction stream
in some of the optimization passes.
> I tried to use git bisect to find the culprit commit, the last working gcc
> commit is 5266910fed23d6d7f101a878dd8a28d178697ec5 (2017-06-28) and this "first"
> broken commit is 7051d2393d15d0d1b848768a6f2767c75aa4b5cd (2017-07-06) but I
> gave up due to lack of time...
I used the following check to drive creduce to minimize the testcase,
I guess it may be reused for gcc bisection:
grep -B 10 movsp < ldso.s > tmp
sed -ne '/add.*, sp,/,/movsp/p' < tmp > tmp1
while : ; do
read cmd reg1 reg2
while read cmd reg1 reg2 reg3 ; do
if [ "$cmd" = "movsp" ] ; then break ; fi
if [ "$cmd" = "s32i" -o "$cmd" = "s32i.n" ] && [ $SR =
$reg2 ] ; then exit 0 ; fi
done < tmp1
I didn't do it because it was easier to just debug the libc startup.
More information about the buildroot