https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106334
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:bc7526f6fca0e6ac3bd462ae54170fa464539148 commit r13-1925-gbc7526f6fca0e6ac3bd462ae54170fa464539148 Author: Richard Biener <rguent...@suse.de> Date: Mon Aug 1 10:06:49 2022 +0200 lto/106334 - fix previous fix wrt -flto-partition=none This adjusts the assert guard to include -flto-partition=none which behaves as WPA. PR lto/106334 * dwarf2out.cc (dwarf2out_register_external_die): Adjust assert.