https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121064
Bug ID: 121064
Summary: Loongarch: FFmpeg build fail when enable
autovectorization.
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jiawei at iscas dot ac.cn
Target Milestone: ---
When enabled -ftree-vectorize in GCC version larger than 13, FFmpeg build will
get a fatal error,but it build fine for other architecture‌:
https://patchwork.ffmpeg.org/check/125495/
```
tests/checkasm/h264chroma.c: In function 'check_chroma_mc':
tests/checkasm/h264chroma.c:54:18: warning: 'size' is used uninitialized
[-Wuninitialized]
54 | for (int size = 0; size < 4; size++) {
| ^~~~
make: *** [tests/Makefile:316: fate-lossless-monkeysaudio-388-extrahigh] Error
1
make: *** [tests/Makefile:316: fate-lossless-monkeysaudio-392b2-extrahigh]
Error 1
make: *** [tests/Makefile:315: fate-lossless-monkeysaudio-389b1-extrahigh]
Error 1
make: *** [tests/Makefile:315: fate-lossless-monkeysaudio-391b1-extrahigh]
Error 1
cpu_flags(raw) = 0x00000003
cpu_flags_str(raw) = lsx lasx
cpu_flags(effective) = 0x00000003
cpu_flags_str(effective) = lsx lasx
threads = 1 (cpu_count = 64)
make: Target 'fate' not remade because of errors.
```