[Buildroot] [PATCH 1/1] toolchain/Config.in: sh4{eb, a, aeb} are affected by GCC bug 101737

Giulio Benetti giulio.benetti at benettiengineering.com
Tue May 31 23:03:58 UTC 2022


Hi Fabrice,

On 31/05/22 23:01, Fabrice Fontaine wrote:
> pixman fails to build with BR2_OPTIMIZE_S on sh4{eb,a,aeb}:
> 
> In file included from pixman-fast-path.c:33:
> pixman-fast-path.c: In function 'fast_composite_scaled_nearest_8888_565_normal_OVER':
> pixman-inlines.h:586:1: internal compiler error: Segmentation fault
>    586 | }
>        | ^
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/c9d35d5975311a191dfbe12291398503987e804e
>   - http://autobuild.buildroot.org/results/d34b8672f6211d60af4122bdd94fa8c2f4f4bf6a
>   - http://autobuild.buildroot.org/results/933c4a2e73c987573ecc97172f442b78199462d5
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>   toolchain/Config.in | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/toolchain/Config.in b/toolchain/Config.in
> index 73ea78624a..7584b85f71 100644
> --- a/toolchain/Config.in
> +++ b/toolchain/Config.in
> @@ -199,7 +199,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
>   # still exists in gcc = 11.1.0
>   config BR2_TOOLCHAIN_HAS_GCC_BUG_101737
>   	bool
> -	default y if BR2_sh4
> +	default y if BR2_sh4 || BR2_sh4eb || BR2_sh4a || BR2_sh4aeb

I've seen only now that BR2_sh4 stands only for:
"sh4 (SH4 little endian)"
Here I've meant to make it default y when any BR2_sh4* is selected.
But at this point I would use BR2_sh since if we have that selected
then all BR_sh4* cases are included and no other BR2_sh* is present.

Can you please modify according to that?

Thanks a lot
Kind regards
-- 
Giulio Benetti
CTO/CEO at Benetti Engineering sas

>   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101915
>   # ICE: in extract_insn, at recog.c:2294 on microblaze.




More information about the buildroot mailing list