https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128578
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:21455788f0f89ea547acb0f6f5318642a82d9f53 commit r17-6338-g21455788f0f89ea547acb0f6f5318642a82d9f53 Author: Jakub Jelinek <[email protected]> Date: Tue Nov 17 09:36:43 2026 +0100 internal-fn: Fix ICE during IFN_CLMUL expansion [PR128578] These two ifns are marked as ECF_CONST, so normally if their lhs is unused, they are DCEd. But at -O0 or when trying hard with disabling passes it can happen that the lhs is NULL_TREE and the stmt hasn't been optimized out. Similarly to other ECF_CONST ifn expansions, this patch does nothing for those cases instead of trying to expand_expr the NULL_TREE and ICEing on it. 2026-11-17 Jakub Jelinek <[email protected]> PR middle-end/128578 * internal-fn.cc (expand_CLMUL, expand_CLMUL_WIDEN): If lhs is NULL_TREE, don't do anything. * gcc.dg/builtin-clmulg-1.c: New test. Reviewed-by: Andrea Pinski <[email protected]>
