https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85862
--- Comment #1 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> --- Author: rsandifo Date: Tue May 22 12:25:44 2018 New Revision: 260504 URL: https://gcc.gnu.org/viewcvs?rev=260504&root=gcc&view=rev Log: Handle a null lhs in expand_direct_optab_fn (PR85862) This PR showed that the normal function for expanding directly-mapped internal functions didn't handle the case in which the call was only being kept for its side-effects. 2018-05-22 Richard Sandiford <richard.sandif...@linaro.org> gcc/ PR middle-end/85862 * internal-fn.c (expand_direct_optab_fn): Cope with a null lhs. gcc/testsuite/ PR middle-end/85862 * gcc.dg/torture/pr85862.c: New test. Added: trunk/gcc/testsuite/gcc.dg/torture/pr85862.c Modified: trunk/gcc/ChangeLog trunk/gcc/internal-fn.c trunk/gcc/testsuite/ChangeLog