https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120605
Bug ID: 120605
Summary: [15 Regression] bootstrap fails on riscv64 with error:
'dominated_by_p' was not declared in this scope
Product: gcc
Version: 15.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
seen with the gcc-15 branch 20250609 on riscv64-linux-gnu:
../../src/gcc/config/riscv/riscv-vector-builtins.cc
In file included from ../../src/gcc/config/riscv/riscv-vector-costs.cc:38:
../../src/gcc/tree-vectorizer.h: In function '_stmt_vec_info*
get_later_stmt(stmt_vec_info, stmt_vec_info)':
../../src/gcc/tree-vectorizer.h:1885:28: error: 'CDI_DOMINATORS' was not
declared in this scope
1885 | else if (dominated_by_p (CDI_DOMINATORS,
| ^~~~~~~~~~~~~~
../../src/gcc/tree-vectorizer.h:1885:12: error: 'dominated_by_p' was not
declared in this scope
1885 | else if (dominated_by_p (CDI_DOMINATORS,
| ^~~~~~~~~~~~~~
riscv64-linux-gnu-g++-14 -std=c++14 -fno-PIE -c -g -DIN_GCC
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-DHAVE_CONFIG_H -fno-PIE -I. -I. -I../../src/gcc -I../../src/gcc/.
-I../../src/gcc/../include -I../../src/gcc/../libcpp/include
-I../../src/gcc/../libcody -I../../src/gcc/../libdecnumber
-I../../src/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../src/gcc/../libbacktrace -I. -I. -I../../src/gcc -I../../src/gcc/.
-I../../src/gcc/../include -I../../src/gcc/../libcpp/include
-I../../src/gcc/../libcody -I../../src/gcc/../libdecnumber
-I../../src/gcc/../libdecnumber/dpd -I../libdecnumber
-I../../src/gcc/../libbacktrace \
../../src/gcc/config/riscv/riscv-vector-builtins-shapes.cc
make[5]: *** [../../src/gcc/config/riscv/t-riscv:97: riscv-vector-costs.o]
Error 1
make[5]: *** Waiting for unfinished jobs....
rm gcc.pod lto-dump.pod gdc.pod
make[5]: Leaving directory '/build/reproducible-path/gcc-15-15.1.0/build/gcc'
make[4]: *** [Makefile:5113: all-stage1-gcc] Error 2
make[4]: Leaving directory '/build/reproducible-path/gcc-15-15.1.0/build'
make[3]: *** [Makefile:32539: stage1-bubble] Error 2
make[3]: Leaving directory '/build/reproducible-path/gcc-15-15.1.0/build'
make[2]: *** [Makefile:32876: bootstrap] Error 2
make[2]: Leaving directory '/build/reproducible-path/gcc-15-15.1.0/build'