https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44574
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>: https://gcc.gnu.org/g:e74f3eb1897745706b7b4d10bb60fc7f28f25b5e commit r15-5526-ge74f3eb1897745706b7b4d10bb60fc7f28f25b5e Author: Andrew Pinski <quic_apin...@quicinc.com> Date: Tue Nov 19 23:45:20 2024 -0800 rtl-reader: Disable reuse_rtx support for generator building reuse_rtx is not documented nor the format to use it is ever documented. So it should not be supported for the .md files. This also fixes the problem if an invalid index is supplied for reuse_rtx, instead of ICEing, put out a real error message. Note since this code still uses atoi, an invalid index can still be used in some cases but that is recorded as part of PR 44574. Note I did a grep of the sources to make sure that this was only used for the read rtl in the GCC rather than while reading in .md files. Bootstrapped and tested on x86_64-linux-gnu. gcc/ChangeLog: * read-md.h (class rtx_reader): Don't include m_reuse_rtx_by_id when GENERATOR_FILE is defined. * read-rtl.cc (rtx_reader::read_rtx_code): Disable reuse_rtx support when GENERATOR_FILE is defined. Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>