]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/107554 - fix ICE in stlen optimization
authorRichard Biener <rguenther@suse.de>
Fri, 11 Nov 2022 13:28:52 +0000 (14:28 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 24 Jan 2023 13:35:43 +0000 (14:35 +0100)
commitca8b8191983d1a211a718b39ca07e35b8c626416
treef1f0e9044384c3e81c9082c5771b95691b1faf6f
parent193f7e62815b4089dfaed4c2bd34fd4f10209e27
tree-optimization/107554 - fix ICE in stlen optimization

The following fixes a wrongly typed variable causing an ICE.

PR tree-optimization/107554
* tree-ssa-strlen.cc (strlen_pass::count_nonzero_bytes):
Use unsigned HOST_WIDE_INT type for the strlen.

* gcc.dg/pr107554.c: New testcase.

Co-Authored-By: Nikita Voronov <nik_1357@mail.ru>
(cherry picked from commit 81de4037454275f8ed6d858fbc129e832c6147ef)
gcc/testsuite/gcc.dg/pr107554.c [new file with mode: 0644]
gcc/tree-ssa-strlen.cc
This page took 0.067478 seconds and 6 git commands to generate.