]> code.ossystems Code Review - openembedded-core.git/commit
libsoup-2.4: fix compiling failed while mips-gcc optimization enabled
authorHongxu Jia <hongxu.jia@windriver.com>
Mon, 24 Mar 2014 08:38:35 +0000 (16:38 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Mar 2014 10:17:41 +0000 (10:17 +0000)
commited592ccfff286faa421a6d73115ed0e03f185895
tree4070f1ac50cd8bcbba11eeece8c761490009c902
parenta5180e942c9315d280580773e72fe67f27629a3c
libsoup-2.4: fix compiling failed while mips-gcc optimization enabled

There was an error about mips-gcc optimization while compiling
libsoup-2.4 2.45.3 with DEBUG_OPTIMIZATION enabled.

The test code of libsoup-2.4 2.45.3 triggered gcc assert which located
in gcc/dwarf2out.c:20810:
...
20806       gcc_assert (prev
20807                   && (CALL_P (prev)
20808                       || (NONJUMP_INSN_P (prev)
20809                           && GET_CODE (PATTERN (prev)) == SEQUENCE
20810                           && CALL_P (XVECEXP (PATTERN (prev), 0, 0)))));
...

The issue test code is the C function 'do_qvalue_tests' located in
tests/header-parsing.c.

The 2.45.92 have refactored the test code and this issue has been fixed.
So backport the fix to 2.45.3.

[YOCTO #5512]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libsoup/files/fix-compiling-failed-while-mips-gcc-optimization-enabled.patch [new file with mode: 0644]
meta/recipes-support/libsoup/libsoup-2.4_2.45.3.bb