[PATCH] Fix ICE when __builtin_calloc has no LHS (PR tree-optimization/91014).

Martin Liška mliska@suse.cz
Thu Jun 27 09:21:00 GMT 2019


This is quite an obvious changes I've noticed during fuzzing
of s390x target compiler.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?


2019-06-27  Martin Liska  <mliska@suse.cz>

	PR tree-optimization/91014
	* tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
	when LHS is NULL_TREE.


2019-06-27  Martin Liska  <mliska@suse.cz>

	PR tree-optimization/91014
	* gcc.target/s390/pr91014.c: New test.
 gcc/testsuite/gcc.target/s390/pr91014.c | 8 ++++++++
 gcc/tree-ssa-dse.c                      | 5 +++--
 2 files changed, 11 insertions(+), 2 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/s390/pr91014.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-ICE-when-__builtin_calloc-has-no-LHS-PR-tree-opt.patch
Type: text/x-patch
Size: 1191 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190627/d4009be6/attachment.bin>

More information about the Gcc-patches mailing list