[Bug rtl-optimization/84635] gcc/regrename.c:1706:64: runtime error: index -1 out of bounds for type 'machine_mode [30]'
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 18 20:17:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84635
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Sun Mar 18 20:17:10 2018
New Revision: 258634
URL: https://gcc.gnu.org/viewcvs?rev=258634&root=gcc&view=rev
Log:
Fix UBSAN in regrename.c (PR rtl-optimization/84635).
2018-03-18 Martin Liska <mliska@suse.cz>
PR rtl-optimization/84635
* regrename.c (build_def_use): Use matches_mode only when
matches >= 0.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/regrename.c
More information about the Gcc-bugs
mailing list