https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70242
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- So something like this may work: diff --git a/config/bootstrap-O3.mk b/config/bootstrap-O3.mk index b269a3f7e12a..b9881e9c1664 100644 --- a/config/bootstrap-O3.mk +++ b/config/bootstrap-O3.mk @@ -1 +1,2 @@ -BOOT_CFLAGS := -O3 $(filter-out -O%, $(BOOT_CFLAGS)) +BOOT_CFLAGS := -O3 -Wno-error=maybe-uninitialized \ + -Wno-error=array-bounds $(filter-out -O%, $(BOOT_CFLAGS))