https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70242
Bug ID: 70242
Summary: GCC bootstrap failed on x86_64 using
"--with-build-config=bootstrap-O3"
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: amker at gcc dot gnu.org
Target Milestone: ---
With below configuration:
../gcc/configure --prefix=/data/work/gcc-patches/x86_64/trunk-orig//target/
--enable-languages=c,c++,fortran,go,java,lto,objc,obj-c++
--with-build-config=bootstrap-O3
Bootstrap failed with:
In file included from ../../gcc/gcc/target.h:53:0,
from ../../gcc/gcc/df-scan.c:28:
../../gcc/gcc/df-scan.c: In function ‘void df_ref_record(df_ref_class,
df_collection_rec*, rtx, rtx_def**, basic_block, df_insn_info*, df_ref_type,
int)’:
../../gcc/gcc/hard-reg-set.h:156:44: error: array subscript is above array
bounds [-Werror=array-bounds]
(!!((SET)[(BIT) / UHOST_BITS_PER_WIDE_INT] \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
../../gcc/gcc/df-scan.c:2536:18: note: in expansion of macro
‘TEST_HARD_REG_BIT’
else if (!(TEST_HARD_REG_BIT (elim_reg_set, regno)
^~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [df-scan.o] Error 1